visual foxpro - need to update table from another table

≯℡__Kan透↙ 提交于 2019-12-19 04:21:20

问题


I have 2 dbf tables and I need to update the 1st table based from the 2nd table values. I am able to do it in SQL server and I need help on Visual Foxpro.

Here's my foxpro command:

=========================================================

use table1

use table2

UPDATE table1 

SET table1.name = table2.name 

from table1 inner join table2 

on table1.id = table2.id 

WHERE table1.dsdate >= {^2011-04-13} and table1.dsdate <= {^2012-04-12}

=========================================================

Please help me, thanks very much!


回答1:


Update Table1 From table2 Where table1.id = table2.id ;
Set table1.name = table2.name


来源:https://stackoverflow.com/questions/13812474/visual-foxpro-need-to-update-table-from-another-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!