创建一个表T_Employee并插入若干数据复制代码代码如下:createtableT_Employee(FNumberVARCHAR(20),FNameVARCHAR(20),FAgeint,FSalaryNUMERIC(10,2),PRIMARYKEY(FNumber));insertintoT_Employee(FNumber,FName,FAge,FSalary)values('DEV001','Tom',25,8300);insertintoT_Employee(FNumber,FName,FAge,FSalary)values('DEV002','Jerry',28,2300.80);insertintoT_Employee(FNumber,FName,FAge,FSalary)values('SALES001','John',23,5000);insertintoT_Employee(FNumber,FName,FAge,FSalary)values('SALES002','Kerry',28,6200);insertintoT_Employee(FNumber,FNam
创建一个表T_Employee并插入若干数据
create table T_Employee(FNumber VARCHAR(20),FName VARCHAR(20),FAge int,FSalary NUMERIC(10,2) ,PRIMARY KEY(FNumber));
insert into T_Employee(FNumber,FName,FAge,FSalary) values('DEV001','Tom',25,8300);
insert into T_Employee(FNumber,FName,FAge,FSalary) values('DEV002','Jerry',28,2300.80);
insert into T_Employee(FNumber,FName,FAge,FSalary) values('SALES001','John',23,5000);
insert into T_Employee(FNumber,FName,FAge,FSalary) values('SALES002','Kerry',28,6200);
insert into T_Employee(FNumber,FName,FAge,FSalary) values('SALES003','Stone',22,1200);
insert into T_Employee(FNumber,FName,FAge,FSalary) values('HR001','Jane',23,2200.88);
insert into T_Employee(FNumber,FName,FAge,FSalary) values('HR002','Tina',25,5200.36);
insert into T_Employee(FNumber,FName,FAge,FSalary) values('IT001','Smith',28,3900);
insert into T_Employee(FNumber,FAge,FSalary) values('IT002',27,2800);
大家可以查找下 create与insert命令的使用。
声明:本文内容来源自网络,文字、图片等素材版权属于原作者,平台转载素材出于传递更多信息,文章内容仅供参考与学习,切勿作为商业目的使用。如果侵害了您的合法权益,请您及时与我们联系,我们会在第一时间进行处理!我们尊重版权,也致力于保护版权,站搜网感谢您的分享!