ubuntu - Mysql Load Data for existing column of a table -


Initially I uploaded the load data using the infiline line I 100,000 IU is using Ubuntu

Example: Data

toncode .... artist ... movie name ... language

1 ............. ....... mj .......... tap ........... english

3 ........... ........ AB .......... tap ........... english

4 .......... ....... ... CD ......... empty ........... english

5 ......... ....... .... ef .......... tap ........... english

But now I update the column movie name ToneCode 1 to 100000 A line to update the IAC. To keep the data in the csv file Please inform how to upload a CSV file for the existing table with data

I think that The fastest way to do this is to use MySQL purely and do not have any additional scripting, as follows:

  • Create a floating table, two column toncode and movie name on your target's table. Similar
  • Load the data data loaded from your new CSV file to INFILE's sub. Ignore
  • Update your target table using syntax like INNER JOIN that describes:

    UPDATE item, month SET items.price = month .price WHERE items.id = month.id;

    It will be included together ???? To join the two tables in the id column, using id and month (using just one "comma-syntax" for "INAUIN JOIN") As a benchmark, and update the items.price column with the value of the month.price column.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -