开发者

Default value for a text column

I have a column in my table having data type as TEXT.

How can I give it a default NULL value, so that when there is not entry in the column it doesn't consume memory.

I was reading a similar que开发者_C百科stion on a forum where they said column should be allowed for null values; I did that but it doesn't work..


TEXT does not support default values of anything but NULL. As such, it's implicitly DEFAULT NULL, so you should not need to change anything.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜