473,657 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Insert file data into text field

Rob
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.
Jul 19 '05 #1
4 10702
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:ex****** **@efgroup.net
mySql / VFP / MS-SQL
"Rob" <ro***@hotmail. com> wrote in message
news:18******** *************** ***@posting.goo gle.com...
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.

Jul 19 '05 #2
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:ex****** **@efgroup.net
mySql / VFP / MS-SQL
"Rob" <ro***@hotmail. com> wrote in message
news:18******** *************** ***@posting.goo gle.com...
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.

Jul 19 '05 #3
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:ex****** **@efgroup.net
mySql / VFP / MS-SQL
"Rob" <ro***@hotmail. com> wrote in message
news:18******** *************** ***@posting.goo gle.com...
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.

Jul 19 '05 #4
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:ex****** **@efgroup.net
mySql / VFP / MS-SQL
"Rob" <ro***@hotmail. com> wrote in message
news:18******** *************** ***@posting.goo gle.com...
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.

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9204
by: Jim Geissman | last post by:
I am trying to bulk insert a text file. The file has fixed-length fields with no field terminators. BOL says that field terminators are only needed when the data does *not* contain fixed-length fields, which implies they are optional -- so I made a format file without any (two consecutive tabs with nothing between them). The following message resulted: Server: Msg 4827, Level 16, State 1, Line 1 Could not bulk insert. Invalid column...
5
4893
by: me | last post by:
I'm also having problems getting the bulk insert to work. I don't know anything about it except what I've gleened from BOL but I'm not seeming to get anywhere...Hopefully there is some little (or big) problem with my code that someone can point out that may save me some time. TIA CBL
20
8562
by: akej via SQLMonster.com | last post by:
Hi, i have table with 15 columns CREATE TABLE . ( PRIMARY KEY , NULL , NULL , NULL , NULL , (50) NULL , NULL
6
12348
by: pk | last post by:
Sorry for the piece-by-piece nature of this post, I moved it from a dormant group to this one and it was 3 separate posts in the other group. Anyway... I'm trying to bulk insert a text file of 10 columns into a table with 12. How can I specify which columns to insert to? I think format files are what I'm supposed to use, but I can't figure them out. I've also tried using a view, as was suggested on one of the many websites I've...
11
23011
by: Chris Fink | last post by:
I have setup an Oracle table which contains a blob field. How do I insert data into this field using C# and ADO.net?
17
2363
by: NuB | last post by:
I have a sql query that is doing an update of records, how can I add NULL to the field in the database if the field on my screen is blank? example: I have 5 textboxes, and a user can leave some blank, delete data from a text box then hit update, how can I have NULL inserted into the field on the database instead of having a blank record in the db
11
28330
by: Ted | last post by:
OK, I tried this: USE Alert_db; BULK INSERT funds FROM 'C:\\data\\myData.dat' WITH (FIELDTERMINATOR='\t', KEEPNULLS, ROWTERMINATOR='\r\n');
6
9702
by: Ted | last post by:
I used bcp to produce the apended format file. How can it be modified to recognize the quotes that surround the text fields and not insert the quotes along with the text? Invariably, the first four columns have text surrounded by quotes and are terminated by tabs. If the first column has "abc", only abc ought to be inserted into that field in the table. Thanks
0
3007
by: ozkhillscovington | last post by:
We have sp's in place that do BULK INSERTS from txt files into the tables. This works fine, however they have asked us to add a field that identifies accounting ctr. The only thing that identifies accounting ctr is the last three letters of the text file being used for the BULK INSERT. How would you suggest that I do this? Is there a way to add a default value to the .fmt or schema files for the text fields, or in the BULK INSERT...
8
6480
by: SaltyBoat | last post by:
Needing to import and parse data from a large PDF file into an Access 2002 table: I start by converted the PDF file to a html file. Then I read this html text file, line by line, into a table using a code loop and an INSERT INTO query. About 800,000 records of raw text. Later, I can then loop through and parse these 800,000 strings into usable data using more code. The problem I have is that the conversion of the text file, using a...
0
8394
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6164
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.