sqlite3 on mac
Create or open a sqlite3 file
$sqlite3 test.db3
SQLiteversion3.6.23
Enter".help"forinstructions
EnterSQLstatementsterminatedwitha";"
sqlite>Get help or quit
.help
.exit or .quit
create table
sqlite>create table Artists (
--->ArtistIDINTEGERPRIMARYKEY,
--->ArtistName TEXT);insert data
sqlite>insert into Artists (ArtistID,ArtistName) values (NULL,'Peter Gabriel');
select data
sqlite>select * from Artists;
select data and show headers
sqlite>.headers ON
sqlite>select * from Artists;
update data
sqlite>update Artists set ArtistName ='Santana' where ArtistID=5;
delete data
sqlite>DELETE FROM CDs WHERE Title LIKE 'Super%';
Import sql file
sqlite>.read insert_table.sql
相关推荐
specialbrian 2020-07-31
loveandroid0 2020-06-18
DAV数据库 2020-06-17
URML 2020-06-13
Dlanguage 2020-06-12
Plant 2020-06-07
疯狂老司机 2020-06-07
chibangyuxun 2020-06-07
sdwylry 2020-06-04
airfling 2020-05-31
Plant 2020-05-31
zbcaicai 2020-05-26
chaochao 2020-05-19
Plant 2020-05-17
小火车 2020-05-14
beibeijia 2020-04-25
Rain 2020-04-16