1、新建表单,并将其caption属性撕良滤儆值设置为“编程入门网-用sql命令创建表”,width和height属性值分别设置为375和250,AutoCenter属性值设置为.t.,将表单保存为“用sql命令创建表.scx”
2、向表单上添加一个表格控件grid1,并将其RecordSourceType属性值设为“1-别名”,ReadOnly属性值设为.t.。
3、create table 网站信息表2 (编号 c(5),网站名称 c(12),网站网址 c(24)) append from 网站信息表旌忭檀祉 go top this.grid1.recordsource="网站信息表2"
4、close all delete file 网站信息表2.dbf if file("网站信息表2.BAK") delete file 网站信息表2.BAK endif
5、运行“用sql命令创建表.scx”。
6、字段名类型宽度编号字符型5
7、以上就是教程