Connecting Tech Pros Worldwide Forums | Help | Site Map

Insert file data into text field

Rob
Guest
 
Posts: n/a
#1: Jul 20 '05
Hey, I'm pretty new to MySQL and have a question.

I've built a database locally and have inputed some information. I
need to go back and update some records, specifically by taking long
pieces of text and putting them into text fields.

Cutting and pasting in the command prompt for windows isn't such a
good idea. Is there a way to update an existing record by importing a
text file into a text field?

All the info I'm seeing in the MySQL manual and in these groups is for
importing text-deliniated files.

Thanks in advance.

swdev1
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Insert file data into text field


Rob - another possibility would be to use a sql query tool ..
I am a big fan of mySqlFront - but its not supported any more. Its still
around for download .

On the other hand - I have written some data maintenance programs in VFP for
mySql.
You could do the same thing, if you wanted to - its very straightforward.

hth - mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:excel-info@efgroup.net
mySql / VFP / MS-SQL
"Rob" <robx2@hotmail.com> wrote in message
news:18ee9096.0308091034.7cada8a8@posting.google.c om...[color=blue]
> Hey, I'm pretty new to MySQL and have a question.
>
> I've built a database locally and have inputed some information. I
> need to go back and update some records, specifically by taking long
> pieces of text and putting them into text fields.
>
> Cutting and pasting in the command prompt for windows isn't such a
> good idea. Is there a way to update an existing record by importing a
> text file into a text field?
>
> All the info I'm seeing in the MySQL manual and in these groups is for
> importing text-deliniated files.
>
> Thanks in advance.[/color]


swdev1
Guest
 
Posts: n/a
#3: Jul 20 '05

re: Insert file data into text field


Rob - another possibility would be to use a sql query tool ..
I am a big fan of mySqlFront - but its not supported any more. Its still
around for download .

On the other hand - I have written some data maintenance programs in VFP for
mySql.
You could do the same thing, if you wanted to - its very straightforward.

hth - mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:excel-info@efgroup.net
mySql / VFP / MS-SQL
"Rob" <robx2@hotmail.com> wrote in message
news:18ee9096.0308091034.7cada8a8@posting.google.c om...[color=blue]
> Hey, I'm pretty new to MySQL and have a question.
>
> I've built a database locally and have inputed some information. I
> need to go back and update some records, specifically by taking long
> pieces of text and putting them into text fields.
>
> Cutting and pasting in the command prompt for windows isn't such a
> good idea. Is there a way to update an existing record by importing a
> text file into a text field?
>
> All the info I'm seeing in the MySQL manual and in these groups is for
> importing text-deliniated files.
>
> Thanks in advance.[/color]


swdev1
Guest
 
Posts: n/a
#4: Jul 20 '05

re: Insert file data into text field


Another scenario for you -
if your tables have primary keys -
you can issue an update command from php ..
[following is pseudoCode]
update tablename set fieldname = textstringvalue where pkfield = 'your
selection criteria'
---
and of course - instead of some copy paste - you can use php to auto gen the
php code you want to run, with the right PK values, line by line, so you
have as many update lines as you need ..

lemme know your thoughts??
mondo regards [Will]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:excel-info@efgroup.net
mySql / VFP / MS-SQL
"Rob" <robx2@hotmail.com> wrote in message
news:18ee9096.0308091034.7cada8a8@posting.google.c om...[color=blue]
> Hey, I'm pretty new to MySQL and have a question.
>
> I've built a database locally and have inputed some information. I
> need to go back and update some records, specifically by taking long
> pieces of text and putting them into text fields.
>
> Cutting and pasting in the command prompt for windows isn't such a
> good idea. Is there a way to update an existing record by importing a
> text file into a text field?
>
> All the info I'm seeing in the MySQL manual and in these groups is for
> importing text-deliniated files.
>
> Thanks in advance.[/color]


swdev1
Guest
 
Posts: n/a
#5: Jul 20 '05

re: Insert file data into text field


Another scenario for you -
if your tables have primary keys -
you can issue an update command from php ..
[following is pseudoCode]
update tablename set fieldname = textstringvalue where pkfield = 'your
selection criteria'
---
and of course - instead of some copy paste - you can use php to auto gen the
php code you want to run, with the right PK values, line by line, so you
have as many update lines as you need ..

lemme know your thoughts??
mondo regards [Will]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:excel-info@efgroup.net
mySql / VFP / MS-SQL
"Rob" <robx2@hotmail.com> wrote in message
news:18ee9096.0308091034.7cada8a8@posting.google.c om...[color=blue]
> Hey, I'm pretty new to MySQL and have a question.
>
> I've built a database locally and have inputed some information. I
> need to go back and update some records, specifically by taking long
> pieces of text and putting them into text fields.
>
> Cutting and pasting in the command prompt for windows isn't such a
> good idea. Is there a way to update an existing record by importing a
> text file into a text field?
>
> All the info I'm seeing in the MySQL manual and in these groups is for
> importing text-deliniated files.
>
> Thanks in advance.[/color]


Closed Thread