[英]How to escape Athena INSERT INTO error if string contains single quote and comma?
您需要在'Waxpol Vinyl & Leather Polish (35', Ltr.)'
中轉義單引號,否則它會變成'Waxpol Vinyl & Leather Polish (35'
字符串后跟一些無效的 SQL。您可以使用額外的單引號來做到這一點:
insert into database.product (title,description)
values (
'Waxpol Vinyl & Leather Polish (35'', Ltr.)',
'Restores with an extremely High & Durable Shine & Gloss.'
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.