|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
inserting null values
hi, i'm looking for a way to inser t a null reference (not a 0) into a field with the integer data type. Is there a way to do this? everything i've trued returns the default value of 0 instead of a null
|
|
#2
|
||||
|
||||
|
you will have to show us the CREATE TABLE statement, as well as the INSERT statement
because what you describe is rather straightforward INSERT INTO yourtable ( ... , integercolumn , ...) VALUES ( ... , null , ... ) |
|
#3
|
|||
|
|||
|
ok, i thought it should be this way, but my script running the commands won't handle it properly. So it seems that it's some error with my programming. I thought it was SQL.
thanks Edit: Yup, it was a programming error, i was embedding every value in ' ' so i was getting errors with the null (recognizing as varchar), Thanks for the help. Last edited by khazad : March 22nd, 2004 at 08:08 AM. |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > inserting null values |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|