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. Database & SysAdmin
  3. Database
  4. Select all columns of table accept one

Select all columns of table accept one

Scheduled Pinned Locked Moved Database
4 Posts 4 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.
  • W Offline
    W Offline
    wEb GuRu
    wrote on last edited by
    #1

    Hi Dears I want to ask that if there is some query some thing like it "select * accept oneColumn from table" I want to do this bcz there r many columns in table and i dont want to write the names of all.If i dont want to select one column what can i do................ Thanking you in anticipation Take it easy...

    M R M 3 Replies Last reply
    0
    • W wEb GuRu

      Hi Dears I want to ask that if there is some query some thing like it "select * accept oneColumn from table" I want to do this bcz there r many columns in table and i dont want to write the names of all.If i dont want to select one column what can i do................ Thanking you in anticipation Take it easy...

      M Offline
      M Offline
      Marc Soleda
      wrote on last edited by
      #2

      I don't think it's possible: the WHERE clause limits rows nor columns. So you'll have to list all the columns ... unless you want to use a bit of script/prequery that gets a list of all columns and then build a new query based on that. Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.

      1 Reply Last reply
      0
      • W wEb GuRu

        Hi Dears I want to ask that if there is some query some thing like it "select * accept oneColumn from table" I want to do this bcz there r many columns in table and i dont want to write the names of all.If i dont want to select one column what can i do................ Thanking you in anticipation Take it easy...

        R Offline
        R Offline
        Rob Graham
        wrote on last edited by
        #3

        There is no syntax support for this in SQL. You can select all (*) or a list. if you want to exclude a column you will have to type the entire list. You could create a view in the database the excludes that column, and select * from the view... Or you could select * from the table and just not use/display the column you aren't interested in. Absolute faith corrupts as absolutely as absolute power Eric Hoffer All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke

        1 Reply Last reply
        0
        • W wEb GuRu

          Hi Dears I want to ask that if there is some query some thing like it "select * accept oneColumn from table" I want to do this bcz there r many columns in table and i dont want to write the names of all.If i dont want to select one column what can i do................ Thanking you in anticipation Take it easy...

          M Offline
          M Offline
          mtasaad
          wrote on last edited by
          #4

          if you are using front end then limit the width size to zero. for that the columns you don't like to display.

          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