-
735 votesanswersviews
如何在SQL Server中转义单引号?
我正在尝试将 insert 一些文本数据放入 SQL Server 9中的表中 . 该文本包括单引号(') . 我怎么逃避呢? 我尝试使用两个单引号,但它给我一些错误 . 例如 . insert into my_table values('hi, my name''s tim.'); -
736 votesanswersviews
如何在SQL Server中转义单引号?
我正在尝试 insert 将一些文本数据放入 SQL Server 中的表格中 . 该文本包括单引号(') . 我怎么逃避呢? 我尝试使用两个单引号,但它给我一些错误 . 例如 . insert into my_table values('hi, my name''s tim.');