Jump to content

Null in to None


RON_ron

Recommended Posts

I want to change the Default value of my db to None. Currently it's Null. Could someone show me the syntax to change the NULL in to None (Default value)?

 

I thought this would work... but no luck.?

 

$sql = "ALTER TABLE my_db MODIFY (name VARCHAR(100) None, mail VARCHAR(100) None, phone TIMESTAMP(30) None)";
mysql_query($sql,$conn);

Link to comment
https://forums.phpfreaks.com/topic/220549-null-in-to-none/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.