Re: MySQL load data with ANT



solved,
simply as normal ant variable ${}

"Ray in HK" <ray@xxxxxxxxx> ¦b¶l¥ó news:42bfc61d$1@xxxxxxxxx ¤¤¼¶¼g...
> if I want to load csv file thru ant script, how can I specify the
directory
> by pointing to variable ?
> In the following script , I would like to specify "test_date.csv" file
> located in the same directory as the project root directory. How can I do
> this ?
>
> <target name="loadData">
> <echo message="LOAD DATA USING: ${db.driver} ${db.url}"/>
> <sql driver="${db.driver}"
> url="${db.url}"
> userid="${db.user}"
> password="${db.pw}"
> onerror="continue">
> <classpath refid="master-classpath"/>
>
> LOAD DATA LOCAL INFILE '<???>test_data.csv'
> INTO TABLE HSI_DAILY
> FIELDS TERMINATED BY ','
> LINES TERMINATED BY '\n'
> (column1, column2, column3............................. );
> </sql>
> </target>
>
>
> Thanks for any comment.
>
>


.



Relevant Pages

  • Re: Big Game Hunting on an Even Footing
    ... 'Please take it to rasfm'. ... parenthetical comment pointing out to David F. that she'd ... that should have been 'didn't specify'. ...
    (rec.arts.sf.misc)
  • Re: Running System File Checker
    ... It doesn't let you specify a point to when asking for the CD> However, ... I do have it pointing to that folder in the registry. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: retrieving news messages
    ... friends seem to return $@ often by wrapping $!, eg, ... Thank you for pointing out. ... specify that, if at all, and perhaps should. ...
    (comp.lang.perl.misc)