SQLite支持的表达式类型有哪些-创新互联

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

成都创新互联公司是一家以重庆网站建设公司、网页设计、品牌设计、软件运维、seo优化排名、小程序App开发等移动开发为一体互联网公司。已累计为成都食品包装袋等众行业中小客户提供优质的互联网建站和软件开发服务。

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支持的表达式类型有哪些”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联-成都网站建设公司行业资讯频道!


网站栏目:SQLite支持的表达式类型有哪些-创新互联
网站地址:http://cdiso.cn/article/dgeopd.html

其他资讯