![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Executing a Oracle SQL statement in a UNIX script | ganga.dharan | Shell Programming and Scripting | 1 | 12-08-2008 10:44 AM |
| Need help in wrting Load Script for a Load-Resume type of load. | ankitgupta | Shell Programming and Scripting | 1 | 11-10-2006 12:46 AM |
| Executing a Shell Script | igandu | UNIX for Dummies Questions & Answers | 4 | 08-17-2006 10:29 AM |
| How to write DB2 Load Utility in Shell script | parisbeginner | Shell Programming and Scripting | 0 | 03-10-2006 02:25 PM |
| Shell script is not executing | dreams5617 | UNIX for Advanced & Expert Users | 5 | 08-20-2004 11:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
I have a piece of shell script which will connect to mysql database and execute a load statement(which will load datas in a file to the database table).The code is working and the data is in the tables. Now my requirement is, i need to grab the output from the load statement execution whether it will be a success message or failure.If in case the load statement fail i will get the below information while executing from cmd line. mysql> load data local infile test.txt' into table userdata; Query OK, 0 rows affected, 14800 warnings (0.05 sec) Records: 3762 Deleted: 0 Skipped: 3762 Warnings: 14800 I need the same info when am doing this operation from a shell script. Your help is appreciated! With Regards Dileep Pattayath |
|
||||
|
Thats perfect! Thanks a lot mate.
Do you know how we can see the skipped records from a load statement. Like in Oracle we can specify a dsc file or bad file from which we can track the rejected or discarded records, like that anything in mysql? With Regards Dileep Pattayath |
|
|||||
|
No idea, but check it out: http://dev.mysql.com/doc/refman/5.0/en/load-data.html
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|