If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > A small sql question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-03, 15:11
simarjitraina simarjitraina is offline
Registered User
 
Join Date: Nov 2003
Posts: 11
A small sql question

i am trying to insert data into sql database and the data comes from a file and gets transferred directly to the database. the problem is that one of my fields is to collect pathnames. now whenever the data reaches the databases the slashes are gone
for ex if the path in the datafile is like \\rhino\users\vol1\sim
then in the database it will be like \rhinousersvol1sim

one way to correct is like adding one more \ after every \ but since it going directly i can't, i was just wondering if there is a way to tell the sql to ignore the slashes

any ideas guys
Reply With Quote
  #2 (permalink)  
Old 11-26-03, 08:27
Suguby Suguby is offline
Registered User
 
Join Date: Nov 2003
Location: Russia
Posts: 7
if you can't change data, change scripting... let data file dumping in some directory, some script proccess it and insert into DB...

or you must arranging with data vendor
Reply With Quote
  #3 (permalink)  
Old 11-26-03, 09:53
Mincer Mincer is offline
Registered User
 
Join Date: Sep 2003
Location: London
Posts: 56
How is it loading the data?

If you're using LOAD DATA LOCAL INFILE you can change the ESCAPED BY setting from \ to something else.

http://www.mysql.com/doc/en/LOAD_DATA.html

Matt.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On