我想从结果集 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/