Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Select * when some column is entered?

Select * when some column is entered?

Scheduled Pinned Locked Moved ASP.NET
databasequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    obarahmeh
    wrote on last edited by
    #1

    As you all know, when you write a query like: select * from TableName where Column01 = 'value'; it retrieves the rows that are related to the column Column01. What I need is: I want to retrieve all the rows in the table when I pass some value in the Column01. I mean: retrieve all the table data when I say in the query : where Column01 = '100' The value '100' is unique for this purpose to retrieve all table data. Any ideas plz... :(

    Kind Regards OBarahmeh

    E S 2 Replies Last reply
    0
    • O obarahmeh

      As you all know, when you write a query like: select * from TableName where Column01 = 'value'; it retrieves the rows that are related to the column Column01. What I need is: I want to retrieve all the rows in the table when I pass some value in the Column01. I mean: retrieve all the table data when I say in the query : where Column01 = '100' The value '100' is unique for this purpose to retrieve all table data. Any ideas plz... :(

      Kind Regards OBarahmeh

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      I dont understand what you want. You want to get all rows from a table which have 100 in Column01?

      1 Reply Last reply
      0
      • O obarahmeh

        As you all know, when you write a query like: select * from TableName where Column01 = 'value'; it retrieves the rows that are related to the column Column01. What I need is: I want to retrieve all the rows in the table when I pass some value in the Column01. I mean: retrieve all the table data when I say in the query : where Column01 = '100' The value '100' is unique for this purpose to retrieve all table data. Any ideas plz... :(

        Kind Regards OBarahmeh

        S Offline
        S Offline
        Sherin Iranimose
        wrote on last edited by
        #3

        OR do you want to retrieve all rows when you give a 'where' condition also. :doh:

        EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE. How to post a question

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups