創(chuàng)建庫:
create database 庫名
創(chuàng)建表格:
create table 表名 create table 表名(id int auto_increment primary key,name varchar(20));
插入數(shù)據(jù)
insert into 表名(name) values("hxd");
刪除數(shù)據(jù)
delete from 表名 where id=#{id}
查詢數(shù)據(jù)
select * from 表名 where id=#{id}
更改數(shù)據(jù)
update 表名 set name=#{name} where id=#{id}