“insert into 表名(字段名)select (字段名) from 表名”
执行这个语句的时候,它出错了,请大家帮我解释一下,错在哪里了.它的作用就是为了方便快捷的查到成千上万条语句

解决方案 »

  1.   

    insert into 表名(字段名)select 字段名 from 表名”
    字段要对应,类型一致
      

  2.   


    insert into b(a, b, c) select d,e,f from a; ----前后字段一一对应
      

  3.   

    Error Code : 1241
    Operand should contain 1 column(s)
    (0 ms taken)
    它会报这个错误!
      

  4.   

    你的语句里面是不是有两个表连接查询的,记得里面需要的话要有AND语句,比如:
    SELECT * FROM table_name WHERE (EMAIL='[email protected]' AND password='password'); 。写出来具体的语句吧。