sqlite常用語句

2021-09-11 14:11:27 字數 901 閱讀 7959

-- select * from yanyou_copy1 order by cast(ctime as int) limit 0,10 

select * from yanyou_copy1 order by cast(ctime as int ) desc limit 0,10

-- select count(*) from yanyou_copy1

-- where cid = '211'

-- select *

-- from yanyou

-- where content like '%他出去方便一下%'

-- select * from yanyou where cid = '205'

-- create table head

-- (

-- id integer primary key autoincrement,

-- pic text,

-- intro text

-- )

-- insert or ignore into head (pic,intro) values ('','不念過往,不為未來,珍惜現在。')

-- insert or ignore into head (pic,intro) values (『就算路不坦蕩,也要做自己的太陽!』)

-- select *

-- from head

-- where intro like '%這是你所擁有的時間,這是你能決定的生活%'

-- delete

-- from head

-- where id > 1000

SQLite常用語句

型別 描述null 值是乙個空值 integer 帶符號的整數,根據值得大小儲存在1 2 3 4 6或8位元組中。相容 等同於 其他資料庫的int,integer,tinyint,smallint,mediumint,bigint,unsigned big int,int2,in8 real 浮點值...

sqlite常用語句

sqlite3.exe 資料庫名字.db create table 表名 表名 字段型別,表名 字段型別,databases tables schema 表名 header on.mode column select from 表名 delete from 表名 where 條件 insert in...

mysql常用語句 MySQL常用語句

create table student id int primary key auto increment comment 學號 name varchar 200 comment 姓名 age int comment 年齡 comment 學生資訊 修改表注釋 alter table studen...