sql server - create a dummy column and populate with select -


i need use select query create dummy column , pad constant value. found partial answer question in related post, here answer:

select name, address, 'no' vacationing, zipcode mytable; 

my question do if want pad number, such as:

'9999' vacationing - error that

also, if want cell empty, such as;

'' vacationing - error here also

tia

'9999' vacationing valid.

you must using union different column type - hence error.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -