SQL 转换符

    1.插入特殊符号

    insert table testTB(name) values('li''ming');

    在SQL中''就相当于一个'

    2.查询SQL语句转义符.

     select * from testTB where name like 'li\''%' escapse'\'

     其中escapse对'\'进行了转义

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-12-30
  • 2022-01-27
  • 2021-09-12
猜你喜欢
  • 2021-07-13
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案