问题描述:
    对于一个已经建好的数据表,里面已经存有数据记录,我想在指定的一条记录中已有的变量的值录入新的数据,请问这怎么实现?例如下面的数据表中
  id    name    age   address
   1    Jim     23     none
   2    Tom     24     none
   3    Jane    21     none
我想在id为3的这条记录中插入Jane的address要怎么实现?

解决方案 »

  1.   

    update tt set address='地址' where id=3; 
      

  2.   

    insert into tableName(address) values("XXXXX") where id=3;
      

  3.   

    错误码: 1064
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where `id`=3' at line 1很明显,这样是不可行的,还是老老实实的用update修改吧
      

  4.   

    是,刚才测试了下那样确实有问题,我写了这个语句update cquote set itemstatus='$items_status' where ProId=3147 就实现了,呵呵,看来你是高手啊,以后多多关照啊!
      

  5.   

    一楼不就是对的么 越看CSDN越觉得自己傻了
      

  6.   

    有没有做过paypal在线支付的接口啊?帮我看看这个问题呗。http://topic.csdn.net/u/20120629/14/b4260f11-00c9-4d27-bdd5-c100c3fa1923.html?seed=706921363&r=79004559#r_79004559