sqlite dinstinc问题
为什么用select name,distinct phone from phone_book就说语法错误,
用select distinct phone,name from phone_book就可以?
没有为什么 distinct 是 select 的修饰符,只能在 select 后直接写 distinct
如果我想得到的结果是name不重复或phone不重复该怎么办?难道不支持?
没看明白,建议你举例说明。
相关问答:
sqlite的空值查询怎么写,能者得分
select * from tt where f1 is null
select * from yourTable where col is null;
SQL code:
sqlite> create table Aoqun (id int primary key,col1 int);
sqlite> ......
目前在公司的linux pc上有一个SQLite server, 我想用在同个区網底下的win pc去连接SQLite server用ASP進行操作, 请问有办法办到吗? 还是SQLite server无法支持网络连接....找了一个下午
剛 ......
sqlite 中
CREATE TABLE table1 (
id integer primary key autoincrement,
name text default '',
[index] integer default ROWID
)
有没有类似的功能,让 index 的值默认等于id, ......
// 打开数据库
SQLiteConnection dconn = new System.Data.SQLite.SQLiteConnection();
dconn.ConnectionString = @"Data Source=D:\db.sdb";
dconn.Open();
SQLiteCommand dcmd = dconn.Crea ......