Advanced Minds

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
php return characters between two strings Strings query question (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: php return characters between two strings Strings query question
#2513
testacct (Visitor)
Click here to see the profile of this user
Birthdate:
php return characters between two strings Strings query question  
I do not understand string comparison. Why doesn't the following work: SELECT id, songname FROM songs WHERE songname = Empire ; All I get is: Empty set (0.00 sec) I know the string exists in the data_base_: In record 135 exists: Empire                                      | | 135 | Do I have to use LIKE ? I want to match a string from one table with a string from another table so I can display the data from the matched record. select movietable.id, movietable.songname, songs.id, songs.songname FROM movietable, songs WHERE movietable.songname = songs.songname; Results: Empty set (0.19 sec) This doesn't work either select movietable.songname, movietable.ID, songs.songname, songs.id FROM movietable, songs WHERE movietable.songname = Empire ; Yet, I know that movietable.songname contains a song called Empire and movietable.songs also contains a song called Empire How do I match the two strings? Running Linux with MySQL-3.23.32-1.7
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
php return characters between two strings Strings query question
testacct 2008/05/08 05:27
    thread link
thread linkthread link php return characters between two strings Strings query question
testacct 2008/05/08 05:27
    thread link
thread linkthread link php return characters between two strings Strings query question
"Roger Baklund" 2008/05/08 05:27
    thread link
thread linkthread link php return characters between two strings Strings query question
"Gurhan Ozen" 2008/05/08 05:27
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
sprawdz autoryzacje authorization failed no auth nieautoryzowano nieautoryzowano
china travel tours heinz field history how to add rss feeds to a php template national news samochody rfn