sqlite dinstinc问题
为什么用select name,distinct phone from phone_book就说语法错误, 用select distinct phone,name from phone_book就可以?
没有为什么 distinct 是 select 的修饰符,只能在 select 后直接写 distinct 如果我想得到的结果是name不重复或phone不重复该怎么办?难道不支持?引用 如果我想得到的结果是name不重复或phone不重复该怎么办?难道不支持? 没看明白,建议你举例说明。
相关问答:
在vs2005中引用了using System.Data.SQLite; 定义了一个连数据库连接变量public SQLiteConnection dBConn; 就报下面这个错误了. The type 'System.Data.Common.DbConnection' is defined in an ass ......
sqllite里面有什么方法把int转换为十六进制存储的呢? 例如,strftime('%s', 'now') 得到1263777947,当前的秒数,我想存储为它的十六进制表示"4B53B89B" 谢谢.. 其实我是想strftime ......
刚入门 想实现新闻表新闻置顶的功能 select * from web_news order by id desc limit 0,6 web_news 表里有TOP列 怎样让TOP列记录为1的为置前 各位大大们帮帮忙 分不多 请包涵!! order ......
更新语句中: UPDATE sc SET AA=INT(BB) 我想让AA得到BB的整数值。可是运行报错。 不知道SQLite下 取整数部分的函数是哪个?(四舍五入的函数又是哪个?)。 如果知道还有其他函数请一并告知,谢谢。 ROUND ......