MySQL Forums
Forum List  »  General

how can add quotes to a parameter
Posted by: Alberto Ramos
Date: June 05, 2013 11:21AM

Hi,
I have the following code

LOAD XML LOCAL INFILE '@1' REPLACE INTO TABLE instrument ROWS IDENTIFIED BY '<Instrument>';

@1 is a parameter I'm passing in a shell script and the documentation requires to have it in quotes (it won't work otherwise)

But adding quotes like that gives me this error

ERROR 2 (HY000) at line 2 in file: 'load.sql': File '@1' not found (Errcode: 2)

I tried escaping the quotes but nothing worked.

Any ideas?

Options: ReplyQuote


Subject
Written By
Posted
how can add quotes to a parameter
June 05, 2013 11:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.