就是我创建一个值的时候~~ 能不能不需要指定那个函数~而是在创建字段的时候 自定义的~ 比如INSERT INTO `openvpn`.`vpnuser` (
`id` ,
`name` ,
`Password` ,
`active`
)
VALUES (
NULL , 'test11', PASSWORD( '12345' ) , '2'
);现在我每次插入的时候~ 都要指定PASSWORD这个函数~~能不能不指定 就默认使用PASSWORD这个函数~~我刚接触MYSQL不久~~ 不要笑话哈~
`id` ,
`name` ,
`Password` ,
`active`
)
VALUES (
NULL , 'test11', PASSWORD( '12345' ) , '2'
);现在我每次插入的时候~ 都要指定PASSWORD这个函数~~能不能不指定 就默认使用PASSWORD这个函数~~我刚接触MYSQL不久~~ 不要笑话哈~
解决方案 »
- mysql-standard-5.0.27-linux-i686-glibc23.tar.gz
- 关于Mysql数据库,新建用户对数据库操作的权限问题
- mysql怎么用sql语句修改某个列的数据类型?
- 关于mysql中使用存储过程 然后游标的系统变量Unkown的问题
- 用show processlist, 发现数据库连接一直Reading from net,怎么办?
- 请问各位,我在windows2003下装了mySQL-front,不能执行查询,怎么回事?
- MySQL如何指定磁盘储存位置?高手入
- 请问如何将access导入到mysql中?
- mysql cursor: fetch ... into var1[,var2,...] 失效
- MySQL 怎么做 二维统计?如何 将列内的数据求和,行内的数据求和
- PostgreSQL不能创建名为user的表吗?
- mysql 触发器能否远程使用?
The DEFAULT value clause in a data type specification indicates a default value for a column. With one exception, the default value must be a constant; it cannot be a function or an expression. This means, for example, that you cannot set the default for a date column to be the value of a function such as NOW() or CURRENT_DATE. The exception is that you can specify CURRENT_TIMESTAMP as the default for a TIMESTAMP column. See