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