0
我必须对插入查询插入变量并稍后使用该变量,但由于select *而无法显示。在shell中写入插入语句并将其存储在变量中
什么我做的是: -
a=today_39012123
b=`echo "insert into mytable select * from $a"`
echo $b
但echo $b
所有别名显示。
我在终端进行了检查echo *
打印与$ b中打印的*相同的东西。
如何将该查询存储在varibale中。
我也试过: - b = echo "insert into mytable select \* from $a"
但我得到的输出: - 插入到mytable select * from today_39012123。 这是不正确的。
hmmmm其working..that意味着我必须执行与设置-o noglob该查询..? – avinashse