Jump to content

Delimiting entries into a mysql database


WBSKI

Recommended Posts

Hi,

 

I am using MYSQL 4.025

 

I want to know how I can delimit entries into a database in a different way than the way I know.

Currently I know that field entries are separated like this ','

but is there another way I can separate the entries because I want to enter data that has the ' character in it like shown below.

<code>

INSERT INTO photo( fullurl, midurl, thumburl, width, height, lat, lng, title, caption, user, visible, datetaken, dateadded, tag ) VALUES( '/data/4/photos/franzstriple/full/Franz's Chair01.jpg','/data/4/photos/franzstriple/mid/Franz's Chair01.jpg','/data/4/photos/franzstriple/thumb/Franz's Chair01.jpg','800','600','','','Franz's Chair','Top Station','Russell P','1','1120101509','1196547193','(l-14)(s-4)' )

</code>

 

Thanks

 

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Chair01.jpg','/data/4/photos/franzstriple/mid/Franz's Chair01

Check the manual that corresponds to your MySQL server version for the right syntax to use near '/data/4/photos/franzstriple/full/Franz's Chair01.jpg,/data/4/ph

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.