searching a row from a database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jay09
    New Member
    • May 2009
    • 3

    searching a row from a database

    is there anyway i can search for a particular row in all columns in a database and display them accordingly?

    like in a customer table, i have CustomerID, Name, Address

    is it possible to search for all the details of a customer?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Which database are you using?

    Are you not sure about the SQL or are you using a language to connect to the database and are unsure of the syntax?

    PS. moved from Jobs to Misc for the time being.

    Comment

    • jay09
      New Member
      • May 2009
      • 3

      #3
      i'm using the language to connect to a database, i'm actually programming with visual basic 2008
      like i have a customer table, containing CustomerID, Name, Address
      i want to search for all the details of a particular customer?

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        The SQL would be simple:
        Code:
        select CustomerID, Name, Address from customer where CustomerID = 123
        (replace 123 with the actual ID. How you query the database and deal with the response depends on the language, so I'll pass this thread onto the VB.NET forum where the experts there should be able to help you.

        Comment

        • jay09
          New Member
          • May 2009
          • 3

          #5
          thanks.......i really do appreciate it

          Comment

          Working...