LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2004, 10:04 AM   #1
michedlp
LQ Newbie
 
Registered: Sep 2003
Posts: 19

Rep: Reputation: 0
MySQL syntax issue


Hey all,

I'm having what i think is a pretty simple problem, but i just can't seem to get the damn thing to work!

i have a command:

SELECT service_name FROM servers, services WHERE services=service_id;


Now this one works(basically, it gets the service_name attached to each server). My problem is that the service_id is a list of values, and i want it to list the names of all those services, not just the first one.

Is this possible? The list of values is in the db like this: 1,2,3,4,5

should the data be in a different manner(spaces instead of commas...)

thanks for any help you can give me!

Miche
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL syntax problem Hydrap Linux - Software 1 08-11-2005 10:49 PM
Can't get pass this mysql syntax error Neruocomp Programming 5 07-24-2005 05:25 PM
BASH - simple script issue - syntax? tw1ggy5 Programming 11 05-21-2004 09:09 AM
mysql syntax question pk21 Linux - General 1 05-18-2004 06:30 AM
A Simple MySQL Query Question (I have Bad Syntax) bpk General 1 12-02-2003 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration