Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select statemennt 1

Status
Not open for further replies.

plork123

Programmer
Mar 8, 2004
121
GB
hi all

can someone tell me how ido this

i have select statemnet

select fielda, fieldb, fieldc from table but i want to do this


select fielda, fieldb, fieldc, selected='true' from table

how do i do the setting a value to a col. that doens't exist in a table

many thanks
 
SELECT fieldsa, fieldb, fieldc, 't' AS selected FROM table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top