Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite #174

Open
magicdawn opened this issue Mar 19, 2024 · 2 comments
Open

sqlite #174

magicdawn opened this issue Mar 19, 2024 · 2 comments

Comments

@magicdawn
Copy link
Owner

No description provided.

@magicdawn
Copy link
Owner Author

SQLite

引号

  • 'string value' 单引号表示一个字符串
  • "column" 双引号和 backstick 表示 identifier

https://www.sqlite.org/lang_keywords.html

NULL 比较

比如一个 deleted BOOLEAN 列, 值可选为 NULL | FALSE | TRUE

  • where deleted IS NOT TRUE: ✅ NULL, ✅ FALSE, ❌ TRUE

IS / IS NOT 会考虑 NULL

@magicdawn
Copy link
Owner Author

SQLite json

json_extract

json_extract(column, '$.a.b.c')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant