[英]mssql_query accent
I hava a problem with this mssql_query in PHP:我在 PHP 中遇到了这个 mssql_query 的问题:
$query = 'SELECT Ville FROM tblLstManufacturiers where province = "Québec"';
The result is empty because I have an accent in Québec结果是空的,因为我有魁北克口音
How can I do this?我怎样才能做到这一点?
You could try:你可以试试:
Select Ville
From tblLstManufacturiers
where province like '%Québec%'
If it is a normal textfield this should work.如果它是一个普通的文本字段,这应该可以工作。
SELECT Ville
FROM tblLstManufacturiers
WHERE province = N'Québec' COLLATE Latin1_General_CS_AI
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.