标签:数据库
//创建数据库
create table if not exists user
(
userid integer primary key autoincrement,
username varchar(128),
classid integer
)
//插入数据库对象
insert into user
(username,classid)
values
(‘王五‘,3)
//按格式显示数据库
select userid as 用户序列号, username as 用户名,classid as 班级号 from user
//更新数据库
update user set classid = 3 where userid = 1
//删除数据库内部数据
delete from user where classid = 2
本文出自 “网络学习总结” 博客,谢绝转载!
标签:数据库
原文地址:http://8947509.blog.51cto.com/8937509/1600554