添加数据到数据库出错 急 INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " '{print $2}'`')应该是 '{print $2}' 这里的问题,在不改动CurrentUmask=`grep $name /etc/profile | awk -F" " '{print $2}'`的情况下应该怎么添加到Mysql里面谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " \'{print $2}\'`')单引号需要转义一下 \' greatzhangq (greatzhangq) '截至2010-08-01 19:07:47 用户结帖率0.00%当您的问题得到解答后请及时结贴.http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.htmlhttp://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.htmlhttp://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html8、如何给分和结贴?http://community.csdn.net/Help/HelpCenter.htm#结帖 [code=SQL]mysql> INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=grep $name /etc/profile | awk -F" " ''{print $2}''');mysql> select * from script;+-------+---------------------------------------------------------------+| name | checkumask |+-------+---------------------------------------------------------------+| test2 | CurrentUmask=grep $name /etc/profile | awk -F" " '{print $2}' |+-------+---------------------------------------------------------------+mysql> INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " \'{print $2}\'`');mysql> select * from script;[/code]+-------+-----------------------------------------------------------------+| name | checkumask |+-------+-----------------------------------------------------------------+| test2 | CurrentUmask=`grep $name /etc/profile | awk -F" " '{print $2}'` |+-------+-----------------------------------------------------------------+ mysql> INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=grep $name /etc/profile | awk -F" " ''{print $2}''');mysql> select * from script;+-------+---------------------------------------------------------------+| name | checkumask |+-------+---------------------------------------------------------------+| test2 | CurrentUmask=grep $name /etc/profile | awk -F" " '{print $2}' |+-------+---------------------------------------------------------------+mysql> INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " \'{print $2}\'`');mysql> select * from script;+-------+-----------------------------------------------------------------+| name | checkumask |+-------+-----------------------------------------------------------------+| test2 | CurrentUmask=`grep $name /etc/profile | awk -F" " '{print $2}'` |+-------+-----------------------------------------------------------------+ create table script(name varchar(30),checkumask varchar(300));INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " ''{print $2}''')INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " \'{print $2}\'')select * from tTest mysql子查询问题(很奇葩的子查询) 求一个SQL MySql insertTime>=DATE_SUB()函数问题 mysql 怎么实现insert与select 联合使用?请给个例子,谢谢! sql中加法怎么用? 这样的表怎样建呢.请各位指教...急~~.多谢 初学mysql的错误: MySQL 如何在插入时得到该行的 id ? MySQL存储数据开始很快。存到150条左右时越来越慢,300左右时就完全不能插入了 请问哪里有MYSQL的DRIVER? 求示例数据库 谁见过这个命令mysql -u root -p -B nistest <D:\test.dump
'截至2010-08-01 19:07:47 用户结帖率0.00%当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html8、如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖
+-------+---------------------------------------------------------------+
| name | checkumask |
+-------+---------------------------------------------------------------+
| test2 | CurrentUmask=grep $name /etc/profile | awk -F" " '{print $2}' |
+-------+---------------------------------------------------------------+
mysql> INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " \'{print $2}\'`');
mysql> select * from script;[/code]
+-------+-----------------------------------------------------------------+
| name | checkumask |
+-------+-----------------------------------------------------------------+
| test2 | CurrentUmask=`grep $name /etc/profile | awk -F" " '{print $2}'` |
+-------+-----------------------------------------------------------------+
| name | checkumask |
+-------+---------------------------------------------------------------+
| test2 | CurrentUmask=grep $name /etc/profile | awk -F" " '{print $2}' |
+-------+---------------------------------------------------------------+
mysql> INSERT INTO script( name, checkumask)VALUES( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " \'{print $2}\'`');
mysql> select * from script;
+-------+-----------------------------------------------------------------+
| name | checkumask |
+-------+-----------------------------------------------------------------+
| test2 | CurrentUmask=`grep $name /etc/profile | awk -F" " '{print $2}'` |
+-------+-----------------------------------------------------------------+
create table script(name varchar(30),checkumask varchar(300));
INSERT INTO script( name, checkumask)VALUES
( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " ''{print $2}''')INSERT INTO script( name, checkumask)VALUES
( 'test2', 'CurrentUmask=`grep $name /etc/profile | awk -F" " \'{print $2}\'')select * from tTest