" ' "(单引号)的运用:在sql server中,两个" ' "(单引号)在拼接字符串的情况下运用,就是表示拼接上了一个" ' "单引号字符串. ),keyid)+'''' name1 FROM Rel_ProductStockLock with (nolock) WHERE KeyId IS NOT NULL ),keyid)+''',' name2 FROM Rel_ProductStockLock with (nolock) WHERE
create user 'wechat'@'192.168.10.%' identified by 'xxxxx'; create database 库名DEFAULT CHARSET utf8 COLLATE utf8_general_ci; grant all privileges on 库名.* to 'wechat'@'192.168.10.%' identified by 'xxxxx';
单引号:对很对计算机语言包括(SQL)是做字符串引用的:这个是大家通常知道的作用:但是对SQL语言来说:还有另外一个作用是作引号的转义 总结下:对oracle(sql)的作用. 做字符串引用:例如'abc';表示这是字符串类型: 做引号的转义:请看下面例子 下面演示下: -- 输出字符串lottu SQL> select lottu as str1 from dual; -- 作用1:字符串类型需要单引号做引用 select lottu as str1 from dual * ERROR at