update station 
set is_visible = 1 from station a inner join line b on a.line_no=b.line_no and a.station = b.station and a.id= b.id where b.is =1
提示我from这个错误?是啥子问题

解决方案 »

  1.   

    MySQL 中语法有些不一样。update station a inner join line b on a.line_no=b.line_no and a.station = b.station and a.id= b.id 
    set a.is_visible = 1 
    where b.is =1
      

  2.   

    语法可以参考一下MYSQL手册中的UPDATE语法部分和例子。MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html
      

  3.   

    update是要把所有的表放到set之前,如果需要条件关联可用where
    如:
    update table1 a,table2 b set a.value=1 where a.id=b.id and .......
      

  4.   

    mysql 两表更新
    update a ,b set a.colum=b.colum where a.id = b.id