informatica:base_de_datos:postgresql:postgresql_pivot
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| informatica:base_de_datos:postgresql:postgresql_pivot [2026/01/29 02:23] – admin | informatica:base_de_datos:postgresql:postgresql_pivot [2026/01/29 02:50] (actual) – admin | ||
|---|---|---|---|
| Línea 11: | Línea 11: | ||
| CREATE EXTENSION IF NOT EXISTS tablefunc; | CREATE EXTENSION IF NOT EXISTS tablefunc; | ||
| + | |||
| + | CREATE TABLE tbl ( | ||
| + | | ||
| + | , status | ||
| + | , ct integer | ||
| + | ); | ||
| + | |||
| + | INSERT INTO tbl VALUES | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | |||
| + | |||
| + | SELECT * | ||
| + | FROM | ||
| + | ' | ||
| + | FROM tbl | ||
| + | ORDER BY 1, | ||
| + | ) AS ct (" | ||
| </ | </ | ||
informatica/base_de_datos/postgresql/postgresql_pivot.1769653381.txt.gz · Última modificación: 2026/01/29 02:23 por admin
