A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
What's the significance of having null as a column ouput all nulls in SQL?
Joined: Apr 01, 2011
Sep 07, 2012 04:22:32
select column_name, null from table_name;
what is the use of null here ?
Joined: Apr 06, 2010
Sep 07, 2012 04:25:54
It's going to put a column in the output containing all nulls.
Pretty pointless by itself, but there may be cases where it's useful in conjunction with some other constructions. For example:
INSERT INTO ....
SELECT column_name, null
subject: What's the significance of having null as a column ouput all nulls in SQL?
WA #1.....word association
object reference variables as literals?
What value does readLine() return when it has reached the end of a file
To Bert Bates and other authors too - please consider this request
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015