问题描述
MASTER是这些数据库之一。我们想要做的是更新MASTER数据库的1个表中的此字段,并在其余数据库中更新相同的值。在所有数据库中,表名和字段名相同。
我们尝试通过shell脚本执行此操作以获取新值,然后再尝试更新其余数据库。当que保存该字段的值时,它不保证正确的值。
在一个示例中:
FILE query.txt
SELECT snippet FROM wp_hfcm_scripts where snippet like '%myvalue%';
如果我们连接数据库并运行,那么确定:
MysqL -D mybbdd Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 941167 Server version: 10.3.25-MariaDB MariaDB Server copyright (c) 2000,2018,Oracle,MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [mybbdd]> SELECT snippet FROM wp_hfcm_scripts where snippet like '%myvalue%'; --------------------------------------------------------------------------------------+ | <script> //myvalue 20201007 jQuery(document).ready(function($){ . . .
但是,如果我们直接在命令行中启动查询,那么它将以一种奇怪的格式响应:
MysqL -D mybbdd < query.sql snippet \n\t\tjQuery("#hero-responsive > p,#hero-responsive > br,#info-responsive > p,#info-responsive > br,#checkout-responsive > p,#checkout-responsive > br,#right-checkout-responsive > p,#er\n \t\t\tjQuery(element).append("<div class='video-checkout'><div
class =''>
有人知道为什么会这样吗?
0 个答案:
没有答案
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)