Skip to content
Advertisement

Tag: mariadb

MySQL – #1064 – Something is wrong in your syntax ‘LIMIT 0, 25’

Server: MariaDB, version 10.4.17 Query: Error in phpMyAdmin: Error in MySQL Workbench: All right so MariaDB decided to modify my query throw error that shouldn’t be thrown Let’s find out what is wrong with select something from (select 1, 2 as something) limit 123: I restarted the server and this error still occurs. Answer Both phpMyAdmin and MySQL Workbench will

MySQL – select distinct value from two column

I have a table with the following structure: How could I make a select statement on this table, which will return some rows of this table, where in each row, a specific id appears only one, indifferent on which column it is specified? For the above result set, I would like a query that would return: To give another example,

Advertisement