Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
JDBC and Relational Databases
What's the significance of having null as a column ouput all nulls in SQL?
vinayak jog
Ranch Hand
Posts: 83
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Simple query
select column_name, null from table_name;
what is the use of null here ?
Matthew Brown
Bartender
Posts: 4568
9
posted 12 years ago
2
Number of slices to send:
Optional 'thank-you' note:
Send
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
...
It's a tiny ad. At least, that's what she said.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Complicated SQL query help
Error java.sql.SQLException: ORA-00923
get column value from column name
how to execute sqlplus and sql commands using java
MS SQL JOIN query not returning all results
More...