INSERT INTO StudAchieve(studID,studName)
   VALUES('2','abc'),('2','bcd'),('2','cde')  拼了半天也不对,及啊 。

解决方案 »

  1.   

    INSERT INTO StudAchieve(studID,studName) 
     select '2','abc'
     union all select '2','bcd'
     union all select '2','cde'
      

  2.   

    INSERT INTO StudAchieve(studID,studName) 
    select '2' studID,'abc' studName union all
    select '2','bcd' union all
    select '2','cde' 
      

  3.   

    INSERT INTO StudAchieve(studID,studName) 
      VALUES('2','abc')
      

  4.   

    --try
    INSERT  
    StudAchieve(studID,studName) 
    select 
    '2','abc'
    union all
    '2','bcd'
    union all
    '2','cde'
      

  5.   

    INSERT INTO StudAchieve(studID,studName) 
      VALUES('2','abc')
    INSERT INTO StudAchieve(studID,studName) 
      VALUES  ('2','bcd')
    INSERT INTO StudAchieve(studID,studName) 
      VALUES('2','cde') 
      

  6.   

    studID的类型是Int吧?'2'——2