应用在JSP中 我有一个表 message
表里面有 id username content reply_content 4个
id是主键 主键是什么意思?
我 insert message(username,content) values(...); 我只插入2个
没有插入 reply_content 那我只想插入 username ,content 什么写 语句
请高手解答啊
表里面有 id username content reply_content 4个
id是主键 主键是什么意思?
我 insert message(username,content) values(...); 我只插入2个
没有插入 reply_content 那我只想插入 username ,content 什么写 语句
请高手解答啊
所以一楼写的是不对的。
insert into message(id,username ,content ) values(null,username ,content )
应该这样
insert into message(username ,content ) values('admin','管理员' )