1. @@identity last_insert_rowid()
2. select cn = count(*) from ... select count(*) cn from ...
3. limit startindex,itemcn
這兒的startindex是從0開始的,而row_number()是從1開始的
4. sqlite中沒有select top,用limit即可
5. sqlite自增字段,如果在事務中插入資料失敗,並不會占用增長後的id,而sql server中對應的id將無效
6. sqlite中沒有getdate日期函式,但是可以使用「select date("now")」語句查詢計算機的當前日期。
7. sqlite支援replace into語法,sql server 2008中支援merge to
SQLite不支援的SQL語法總結
1 top 這是乙個大家經常問到的問題,例如在sqlserver中可以使用如下語句來取得記錄集中的前十條記錄 select top 10 from index order by indexid desc 但是這條sql語句在sqlite中是無法執行的,應該改為 select from index o...
SQLite不支援的SQL語法總結
1 top 這是乙個大家經常問到的問題,例如在sqlserver中可以使用如下語句來取得記錄集中的前十條記錄 select top 10 from index order by indexid desc 但是這條sql語句在sqlite中是無法執行的,應該改為 select from index o...
SQLite不支援的SQL語法總結
1 top select top 10 from index order by indexid desc 但是這條sql語句在sqlite中是無法執行的,應該改為 select from index order by indexid desc limit 0,10 其中limit 0,10表示從第0...