SQLite支持的表达式类型有哪些

发布时间:2021-12-03 13:53:57 作者:小新
来源:亿速云 阅读:103

这篇文章主要介绍SQLite支持的表达式类型有哪些,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

SQLite中的表达式

SELECT的基本完整形式中,我们会看到几乎是所有的子句都会使用到表达式。以下是SQLite支持的表达式类型。

expr binary-op expr |                                                                                                                //二元运算符

expr [NOT] like-op expr [ESCAPE expr] |                                                                    //LIKE运算符,匹配模式的一种

unary-op expr |                                                                                                                 //一元运算符

( expr ) |                                                                                                                             //括号

column-name |                                                                                                                          //列名

table-name . column-name |                                                                                        //表名.列名

database-name . table-name . column-name |                                                                  //数据库名.表名.列名

literal-value |                                                                                                                     //字面量

parameter |                                                                                                                       //差数形式

function-name ( expr-list | * ) |                                                                                       //函数

expr ISNULL |                                                                                                                   //处理NULL

expr NOTNULL |                                                                                                              //非空

expr [NOT] BETWEEN expr AND expr |                                                                      //范围

expr [NOT] IN ( value-list ) |                                                                                            //范围

expr [NOT] IN ( select-statement ) |                                                                              //范围

expr [NOT] IN [database-name .] table-name |                                                          //范围

[EXISTS] ( select-statement ) |                                                                                       //存在

CASE [expr] ( WHEN expr THEN expr )+ [ELSE expr] END |                                  //条件结果

CAST ( expr AS type )                                                                                                     //转换

以上是“SQLite支持的表达式类型有哪些”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

推荐阅读:
  1. Mysql支持的数据类型有哪些
  2. Redis支持的数据类型有哪些

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

sqlite

上一篇:pd.Series()函数怎么用

下一篇:tk.Mybatis插入数据获取Id怎么实现

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》