sqlite 使用sql语句的问题

来源:百度知道 编辑:UC知道 时间:2024/06/20 07:27:00
使用SQLite数据库,运行SQL查询语句时,isnull不能执行。
请问SQLite中怎样实现SQL查询语句中使用的isnull的效果
语句为select isnull(a,0) as a,b from temp在sql server的查询分析器中可正常使用,
在sqlite中不能运行提示near “isnull”:syntax error错误

路过,顺便试了下,可以的啊!

root@DPtech /proc$ sqlite3
SQLite version 3.6.11
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table tb(id integer, value text);
sqlite> insert into tb(id) values(1);
sqlite> insert into tb values(2, '22');
sqlite> select * from tb;
1|
2|22
sqlite> select * from tb where value isnull;
1|
sqlite>