Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th November 2006, 10:23 AM
AndreasMet Offline
Registered User
 
Join Date: Oct 2006
Posts: 19
Insert Statement from mySQL

Hi All,
I cannot find the answer to a simple question.

I have a table with a field defined as text. This field stores a number of SQL statements that are called upon to be executed on a dataset.

The problem I have is loading a record into the table when the SQL statement has a ' in it. For eaxample:

INSERT INTO TABLE 'tblStoredSQL' values ('SELECT * FROM tblJunk WHERE name = 'example'')

The insert statement requires the use of the ' and the stored SQL statement has the ' in it as well.

What to do?

Thanks for responses.
Reply With Quote
  #2  
Old 26th November 2006, 10:39 AM
AndreasMet Offline
Registered User
 
Join Date: Oct 2006
Posts: 19
Just use " instead of ' and it all works.

Problem solved.
Reply With Quote
Reply

Tags
insert, mysql, statement

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql bash insert error? Dr.Diesel Using Fedora 4 28th February 2007 12:43 AM
Insert data to Mysql from syslog server Eduardain Servers & Networking 3 21st October 2006 12:49 AM
how to insert an image into mysql using php imryn Programming & Packaging 10 13th April 2006 03:18 AM


Current GMT-time: 11:08 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat