skip to Main Content

MYSQL SELECT but with conditions

Is it possible within a MYSQL SELECT statement to include conditions dependent on user selection? Edited for clarity. Something that does this: IF user *does A* SELECT * FROM myTable IF user *does B* SELECT colB, colC, colD FROM myTable…

VIEW QUESTION

Optimizing MySQL query with group_concat

I have an old PHP5 MySQL webapp whose code had to be adapted to PHP8/MySQL14.14 There's a view, querying few tables and based on that code: (SELECT `db_demandes`.`bdd`.`id` AS `Id`, `db_demandes`.`bdd`.`ref` AS `Ref`, `db_demandes`.`bdd`.`nodossier` AS `NoDossier`, `db_demandes`.`bdd`.`agentfirme` AS `Agentfirme`, `db_demandes`.`bdd`.`agentanterieur`…

VIEW QUESTION
Back To Top
Search