数据库怎么添加一条新纪录 并且 只在主键上添加一个值,请问有谁知道吗?
详细说说,我不太懂

解决方案 »

  1.   


    create table tb(id int identity primary key,name varchar(10))insert into tb values('bbb')
    insert into tb(name) values('aaa')
      

  2.   

    create table tb(id int identity primary key,name varchar(10))insert into tb values('bbb')
    insert into tb(name) values('aaa')select * from tb
    id          name
    ----------- ----------
    1           bbb
    2           aaa(2 行受影响)drop table tb
      

  3.   

    能说详细点吗?
    比如我在info表中插入一条新记录,并且主键ID为1005应该怎么插入?
    insert into info (1005, , , , , , , ,)//后边这么多空字段该怎么办
    有没有简便的插于语句啊