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 > sql command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-08, 01:33
reetha reetha is offline
Registered User
 
Join Date: Jul 2008
Posts: 6
sql command

Code:
Dim sql As String = "select * from tblContentMaster where MenuItemIDRef = 5"
      Try
         dr = SqlHelper.ExecuteReader(connectionString, CommandType.Text, sql)

Hi there...can anybody help me to convert these line of code to MySQL. I am having troubling in the last line... Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 07-22-08, 07:30
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
in mysql, the sql is exactly the same
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 07-22-08, 07:52
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
what error message are you getting
have you checked to make sure that MenuItemIDRef is numeric
have your tries the SQL in say MySQL query browser to make sure the SQL is valid
if all those pan pout then its something to do with the way your are calling the SQL which is down to the application language which looks like one of the .NET languages.. so y'd be best off asking the question there
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
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