
19/05/2008, 11:18
|
Colaborador | | Fecha de Ingreso: marzo-2008 Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 17 años Puntos: 300 | |
Respuesta: Maximo valor de campo en varias tablas Prueba así:
(SELECT num_order from tbl_text where id_columna = 3)
union all
(SELECT num_order from tbl_textbox where id_columna = 3)
union all
(SELECT num_order from tbl_file where id_columna = 3)
union all
(SELECT num_order from tbl_menu where id_columna = 3)
union all
(SELECT num_order from tbl_radio where id_columna = 3)
union all
(SELECT num_order from tbl_checkbox where id_columna = 3) ORDER BY num_order desc limit 1 |