假如已创建名为 abc 的数据库  如何创建基本表 userinfo 到数据库 abc 中(用sql语句)

解决方案 »

  1.   

    use abc
    create table userinfo(field1 int,field2 char(20))
      

  2.   

    Create Table userinfo(字段1 类型,字段2 类型)
    例如创字段:f1 字符类型,长度为10;f2 数值类型 
    语句为:Create table userinfo(f1 char(10),f2 int)
      

  3.   

    创建表 userinfo 到数据库 abc 中:
    use abc
    create table userinfo(field1 int,field2 char(20))用 在delphi中用sql.add('');  该怎么写呢?
      

  4.   

    创建表 userinfo 到数据库 abc 中:
    use abc
    create table userinfo(field1 int,field2 char(20))用 在delphi中用sql.add('');  该怎么写呢?
    ------------------------------------这你的不会,你应该找本书,看看数据库方面的例程。
    adoquery.sql.txt:='use abc  create table userinfo(field1 int,field2 char(20))  '
      

  5.   

    xhh_88(三友)  谢了 ~