ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
数据插入 === ## 知识点 `insert into [tablename] (field,...) values (value,...)` ### SQL 部分 ``` > insert into posts (title,context) values ('',''); > insert into posts (title,content) values (NULL,''); > select * from posts; ``` ``` dollarkiller=# insert into posts (title,context) values ('page one','he he he he he he he'); INSERT 0 1 dollarkiller=# select * from posts; id | title | context | is_draft | is_del | created_data ----+----------+----------------------+----------+--------+---------------------------- 2 | page one | he he he he he he he | t | f | 2019-07-03 03:40:29.184139 (1 row) ```