那请问要怎么写呢 我mysql语法不熟悉

解决方案 »

  1.   

    不能设置这样的默认值The DEFAULT clause specifies a default value for a column. With one exception, the default value must be a constant; it cannot be a function or an expression. 
      

  2.   

    很不幸,MYSQL目前仅支持字段的默认值为常数(除timestamp外) 没有办法使用默认值为变量。