我建的数据库MYSQL中字段太多了,要进行插入不同的值,怎么用VC实现啊?
跪求答案。

解决方案 »

  1.   

    INSERT INTO table (a,b,c) VALUES (1,2,3)
      

  2.   


    --插入数据库表字段值就1#那种做法
    insert into tb(a,b,.....) values('a',1,......)
      

  3.   

    insert into tb(c1,c2...) values(v1,v2...)
      

  4.   

    另一种方法来了:insert into tb(a,b,.....) 
    select a ='',b='',..... union all
    select a ='',b='',..... union all
    select a ='',b='',..... 
      

  5.   

    insert into table (a,b,c) valuse (1,2,3)
      

  6.   

    insert into table (a,b,c) values (1,2,3)
      

  7.   

    sql插入数据,就类似楼上各位给出的,你可以写成储存过程,在VC中怎么调用,你可以去VC板块问下。