A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Query meaning...? why they are using null here ...
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
Don't get me started about those stupid
subject: Query meaning...? why they are using null here ...
Data table error
Java and database
Concurrency Issue with HSQLDB
DB2 connectivity - strange error
Getting 0 rows returned when selecting with null values
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013