in reply to Test for number or string
Thanks for the node but I don't think placeholders will solve the problem. I could use them (again I think) to insert the lines.
Let me expand a little further. The '$fileline" contains a record... (id,'name','address',..... for example) which is build by my script. This is then downloaded and saved as backup. On the upload side, the only thing my script knows is the table name. The $fileline contains the correct number of fields to be inserted. I don't believe that the placeholder will insert the appropiate quotes in each of the fields.
My current solution involves getting a DESCRIPTION of the table to deterime which fields contain strings (varchar) and then inserting the quotes on the download side. Pretty long-winded
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Test for number or string
by pfaut (Priest) on May 03, 2003 at 00:48 UTC | |
by nedals (Deacon) on May 03, 2003 at 00:55 UTC | |
by Aristotle (Chancellor) on May 03, 2003 at 02:25 UTC |
In Section
Seekers of Perl Wisdom