当前位置:Gxlcms > 数据库问题 > 避免shell脚本SQL语句中 *输出时转义

避免shell脚本SQL语句中 *输出时转义

时间:2021-07-01 10:21:17 帮助过:21人阅读

                                                                                                   

修改为如下:

#!/bin/bash
sql="select * from emp;"

echo "$sql"

echo "$sql" > test.log

再次执行,结果如下

select * from emp;


本文出自 “努力奔向前方” 博客,请务必保留此出处http://liucb.blog.51cto.com/3230681/1903960

避免shell脚本SQL语句中 *输出时转义

标签:避免*转义

人气教程排行