EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   MySQL Question Regarding 'Null' Fields: (https://www.eqemulator.org/forums/showthread.php?t=26465)

So_1337 10-09-2008 12:03 PM

MySQL Question Regarding 'Null' Fields:
 
When doing INSERT queries, how would I go about adding a "null" field. Just using '' doesn't seem to do it, it just leaves the field blank. I want it actually marked as null.

Thanks for any help =)

Derision 10-09-2008 01:07 PM

Code:

insert into test1 values('abc',NULL);
?

So_1337 10-09-2008 01:12 PM

Well no kidding, it really was that easy =) Thank you!

Bulle 10-09-2008 01:13 PM

You can try :
Code:

insert into rule_values values (12,'X',null);


All times are GMT -4. The time now is 01:38 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.