SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 21st, 2002, 05:05 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
sql quotes

<i><b>Originally posted by : Ton (t.meulman@plant.nl)</b></i><br />I have made a form that posts a variable. I want to use that variable in a SQL query to do a database search, but I am having trouble with the right way to make the SQL string. I think this has to do with using the right quotes<br />can someone help me hare?

Reply With Quote
  #2  
Old March 28th, 2002, 03:20 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Eric Preston (ericpreston@email.com)</b></i><br />Without more info the most I can offer is, when querying a DB through SQL, if the field is TEXT then you need to use single quotes<br /><br />EX: WHERE TEXTFIELD='yourtext'<br /><br />If it's a numeric field then you don't use quotes<br /><br />EX: WHERE NUMERICFIELD=1<br /><br />If it's a MEMO field then you can't query it.<br /><br />Hope this helps<br /><br /><br />------------<br />Ton at 3/21/2002 3:05:00 PM<br /><br />I have made a form that posts a variable. I want to use that variable in a SQL query to do a database search, but I am having trouble with the right way to make the SQL string. I think this has to do with using the right quotes<br />can someone help me hare?

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > sql quotes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway