23 lines
294 B
MySQL
23 lines
294 B
MySQL
|
|
-- PublicreportPublicIDSuggestion
|
||
|
|
SELECT
|
||
|
|
'nuisance' AS table_name,
|
||
|
|
public_id,
|
||
|
|
location
|
||
|
|
FROM
|
||
|
|
publicreport.nuisance
|
||
|
|
WHERE
|
||
|
|
public_id LIKE $1
|
||
|
|
|
||
|
|
UNION ALL
|
||
|
|
|
||
|
|
SELECT
|
||
|
|
'pool' AS table_name,
|
||
|
|
public_id,
|
||
|
|
location
|
||
|
|
FROM
|
||
|
|
publicreport.pool
|
||
|
|
WHERE
|
||
|
|
public_id LIKE $1
|
||
|
|
ORDER BY
|
||
|
|
public_id;
|