common_syntax.sql 261 B

123456789101112
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. -- Null handling
  4. SELECT
  5. JSON_VALUE(NULL, "strict $.key"),
  6. JSON_VALUE(Nothing(Json?), "strict $.key");
  7. -- Casual select
  8. $json = CAST(@@{"key": 128}@@ as Json);
  9. SELECT
  10. JSON_VALUE($json, "strict $.key");