Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
eupher
Apprentice


Joined: 18 Jan 2001
Posts: 116
Location: USA

PostPosted: Sat Apr 23, 2011 12:40 am   

inserting null values in sqlite
 
This is probably a stupid question... but I'm having trouble figuring out how to specify null values when editing a row in sqlite...

Code:
#SQLDB myDB
$query = "SELECT * FROM MyTable"
$row = %sql(myDB,$query)
$row.Item("shouldBeNull") = ########


What do I put here to get a null value in that field? I've tried NULL, null, "NULL", "null", 'NULL', and 'null' and all of them give me a string.

I'm running cmud 3.34

Thanks!
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sat Apr 23, 2011 12:52 am   
 
Try %null.
Reply with quote
eupher
Apprentice


Joined: 18 Jan 2001
Posts: 116
Location: USA

PostPosted: Sat Apr 23, 2011 12:58 am   
 
Figured. I'm stupid. That worked. Thanks again. Smile
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net