gpt4 book ai didi

sql - Postgresql 在 where 子句中转义单引号

转载 作者:行者123 更新时间:2023-11-29 11:09:33 25 4
gpt4 key购买 nike

<分区>

所以我正在尝试运行这样的脚本:

select id
from owner
where owner.name = "john's"

我收到此错误:错误:列“john's”不存在

我也试过这样:where owner.name = 'john\'s',但它不起作用

有人知道我如何运行这样的查询吗?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com