嘿,我想选择名为 O'Neil 的记录,我如何在 Informix 中做到这一点。
select * from name_table where lastname = 'O'Neil' --> 不起作用。
最佳答案
您必须使用另一个单引号转义单引号:
select * from name_table where lastname = 'O''Neil';
关于informix - 选择具有单引号字符串的记录 -informix,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9768742/