【发布时间】:2019-03-27 13:32:59
【问题描述】:
使用 Informix 数据库在插入之前创建触发器。 当我们尝试向表中插入一条记录时,它应该将随机字母数字字符串插入其中一个字段。有内置函数吗?
该表由以下字段组成:
empid serial NOT NULLage intempcode varchar(10)
我正在跑步
insert into employee(age) values(10);
预期的输出应该如下所示:
id age empcode
1, 10, asf123*
感谢任何帮助。
【问题讨论】:
-
在 Informix 中没有生成随机字符串的内置函数。您必须创建自己的。
标签: informix