This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
t1.TABLE_NAME AS tabla_nombre, | |
t1.COLUMN_NAME AS columna_nombre, | |
t1.COLUMN_DEFAULT AS columna_defecto, | |
t1.IS_NULLABLE AS columna_nulo, | |
t1.DATA_TYPE AS columna_tipo_dato, | |
COALESCE(t1.NUMERIC_PRECISION, | |
t1.CHARACTER_MAXIMUM_LENGTH) AS columna_longitud, | |
PG_CATALOG.COL_DESCRIPTION(t2.OID, | |
t1.DTD_IDENTIFIER::int) AS columna_descripcion, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
t1.TABLE_NAME AS tabla_nombre, | |
PG_CATALOG.OBJ_DESCRIPTION(t2.OID, 'pg_class') AS tabla_descripcion | |
FROM | |
INFORMATION_SCHEMA.TABLES t1 | |
INNER JOIN PG_CLASS t2 ON (t2.relname = t1.table_name) | |
WHERE | |
t1.TABLE_SCHEMA='public' | |
ORDER BY | |
t1.TABLE_NAME; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
t1.COLUMN_NAME AS columna_nombre, | |
t1.COLUMN_DEFAULT AS columna_defecto, | |
t1.IS_NULLABLE AS columna_nulo, | |
t1.DATA_TYPE AS columna_tipo_dato, | |
COALESCE(t1.NUMERIC_PRECISION, | |
t1.CHARACTER_MAXIMUM_LENGTH) AS columna_longitud, | |
PG_CATALOG.COL_DESCRIPTION(t2.OID, | |
t1.DTD_IDENTIFIER::int) AS columna_descripcion, | |
t1.DOMAIN_NAME AS columna_dominio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update HIJO set HIJO.apellido = PADRE.apellido | |
from HIJO | |
join PADRE on PADRE.id = HIJO.idPadre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['email'])) { | |
// Debes editar las próximas dos líneas de código de acuerdo con tus preferencias | |
$email_to = "[email protected]"; | |
$email_subject = "Contacto desde el sitio web"; | |
// Aquí se deberían validar los datos ingresados por el usuario | |
if(!isset($_POST['name']) || !isset($_POST['message']) || !isset($_POST['email'])) | |
{ |
NewerOlder