mysql-workbench - 如何从 MySQL Workbench 中的结果集中调用函数?

标签 mysql-workbench

我想从结果集 View 向表中插入一行。

我必须在其中一列中“现在”调用该函数。

我如何告诉 mysql workbench 不要插入值“now()”而是插入其结果?

最佳答案

好吧,我终于找到了提到该功能的手册页:

https://dev.mysql.com/doc/workbench/en/wb-sql-editor-query-panel.html

It is possible to enter a function, or other expression, into a field. Use the prefix \func to prevent MySQL Workbench from escaping quotation marks. For example, for the expression md5('fred'), MySQL Workbench normally would generate the code md5(\'fred\'). To prevent this, enter the expression as \func md5('fred') to ensure that the quoting is not escaped.

关于mysql-workbench - 如何从 MySQL Workbench 中的结果集中调用函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22786921/

相关文章:

mysql - MySQL 中的运动队和赛程表

mysql - 创建 DOUBLE 字段失败,错误 1064 : MySQL

mysql - 如何防止 MySQL 在存储过程调用之间缓存变量值?

mysql - 如何绕过 'ON DELETE SET DEFAULT' 不被接受?

mysql - 为什么 MySQL Workbench 告诉我缺少分号?

mysql - 数据库值在特殊字符处被截断

c# - 连接表 MySQL

mysql - 错误代码 : 1192. 无法执行给定的命令,因为您有事件的锁定表或事件事务

mysql - MySQL Workbench 中是否有用于应用(编辑模式)按钮的快捷方式(键盘)?

MySQL 工作台 : dumping whole data base in one sql file