sqlite的sql語法
發布時間: 2025-02-23 00:34:29
⑴ sqlite 創建表的sql 語句
執行查詢語句:
SELECT COUNT(*) as TabCount FROM sqlite_master where type='table' and name='T1'
如果TabCount大於零,說明T1表存在;
但是sqlite不支持
IF NOT EXISTS(select * ...)
CREATE TABLE(....) ...
之類的SP語法;
只能在程序中判斷創建了。
熱點內容