2017-09-20 80 views
0

如何在Presto中跳出'(單引號)?我如何逃避Presto中的單引號?

這是我想用它

select count(*) as count from uploads where title not in ('Driver's License')

我已經試過通常逃逸:,'Driver\'s License'"Driver's License"E'Driver\'s License'但似乎沒有任何工作。 Presto的文檔含糊不清。有人知道嗎?

+1

在(標準)SQL這將是'「司機」的License'' –

+0

工作正常!謝謝! – scottshepard

回答

0

將一個單引號兩次到位單引號,你需要逃避的:

select count(*) as count 
from uploads 
where title not in ('Driver''s License')