Results 1 to 3 of 3

Thread: NOOb question

  1. #1
    Join Date
    Nov 2007
    Posts
    7

    Unanswered: NOOb question

    I need to get a list of managers from a MYSQL databse

    Select * from MyDB where Role=Manager

    but dont know the syntax proper

    Cheers and sorry, its been a while

  2. #2
    Join Date
    Nov 2007
    Posts
    7
    to add to this the manager role id is "8" and i need to get the first, lastname and email address

    So Select firstname,surname, email FROM MyDB where roleid=manager"

    Cheers

    Cant get it to work

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Code:
    SELECT firstname
          , lastname
          , email
    FROM   myTableName
    WHERE  roleid = 8
    ?
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •