Home > Back-end > Update the data in the database using excel doubt?
Update the data in the database using excel doubt?
Time:09-27
There is a refrigerator in SQL2000 database mydata, my_result need to manipulate the database tables, fields below Id name result1 result2 result3 Zhang SAN 1
2, dick, and harry3 fifty . . N z
Result1 is the first result, result2 is the second time, result3 is third grade
Now I have a excel, only name and one result, equivalent to a three updates I have to get above the table of contents of complete,
Here's the thing, every time I excel the names of the corresponding order and the order as mentioned in the database table name is not the same, should how to operate?
CodePudding user response:
Write an UPDATE statement amount
To remove data in EXCEL
Then update to SQL SQLSTR:='update mydata set result2=% f the where name=', '% s' "';