简体   繁体   中英

PHP - Does MySQL query won't work if database is in MS SQL Server?

I was wondering why MySQL Query is not working on my localhost(XAMPP), it was like a simple LIMIT and Offset clause not working. So I try to check deep on my code and I notice that my Database is in a MS SQL Server . Now I try to use TOP keyword instead of LIMIT and it work. My question is does connecting to a MS SQL Database wouldn't allow me to use MySQL query ? If so is there any possible way to use MySQL query on my case? Because I'm having a hard time on my query using SQL Query . I really need an answer on this, any answers is appreciated. Thanks

Every brand real-world SQL database server system has its own dialect of the query language. It's a rare and carefully crafted query that works cross-brand.

And, pretty much no query with a LIMIT or TOP clause works cross-brand.

Welcome to the world of full employment for SQL coders!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM