2012年7月13日

SQL 通过视图更新数据

摘要: 两表更新(每一行都可以匹配)有2个表, test_from test_to要把 tesr_from 的数值,更新到 test_to 表1> select * from test_from;2> select * from test_to;3> goid val----------- -------------------- 1 AAA 2 B(2 行受影响)id val----------- -------------------- 1 A 2 B(2 行受影响)1> UPDATE2> test_to3> SET4> test_to.val =5> 阅读全文

posted @ 2012-07-13 14:52 CarreyWu 阅读(1803) 评论(0) 推荐(0) 编辑

导航