Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here 'customer' and 'item' are table names, this is external .txt file. I have to read this file and write the update statement to update the customer and update the corresponding values of table, the same applicable to to 'item' table as well and this I have to do based on primary key I have mentioned in the .txt file. what is best approach to do this.[customer] customer_id=121 # this is primary key. customer_name=abc customer_age=25 [item] item_id=222 # this is primary key. sugar=100 stock=yes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading txt and update into database table
by GrandFather (Saint) on Jul 07, 2015 at 11:49 UTC | |
|
Re: reading txt and update into database table
by CountZero (Bishop) on Jul 07, 2015 at 12:16 UTC | |
|
Re: reading txt and update into database table
by kcott (Archbishop) on Jul 07, 2015 at 12:19 UTC | |
|
Re: reading txt and update into database table
by 1nickt (Canon) on Jul 07, 2015 at 11:46 UTC | |
|
Re: reading txt and update into database table
by erix (Prior) on Jul 07, 2015 at 11:41 UTC |