You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select
a.context,a.create_time,
b.avatar as "creator.avatar",b.avatar as creator_avatar
from t_comment a
left join t_user b on a.create_by = b.id
where a.link_id in (?)
为了方便复现以下是
建表SQL: CREATE TABLE IF NOT EXISTS "t_comment" ( "id" SERIAL PRIMARY KEY NOT NULL, "link_id" INTEGER NULL, "context" VARCHAR(240) NULL, "score" INTEGER DEFAULT 0 NULL, "agree" INTEGER DEFAULT 0 NULL, "disagree" INTEGER DEFAULT 0 NULL, "create_by" INTEGER NULL, "create_time" TIMESTAMP NULL, "update_time" TIMESTAMP NULL, "delete_time" TIMESTAMP NULL )CREATE TABLE IF NOT EXISTS "t_user" ( "id" SERIAL NOT NULL primary key, "name" VARCHAR(140) NULL, "avatar" varchar(380) null, "score" int NULL, "create_time" timestamp NULL, "update_time" timestamp NULL, "delete_time" timestamp NULL );
The text was updated successfully, but these errors were encountered:
为了方便复现以下是
建表SQL:
CREATE TABLE IF NOT EXISTS "t_comment" ( "id" SERIAL PRIMARY KEY NOT NULL, "link_id" INTEGER NULL, "context" VARCHAR(240) NULL, "score" INTEGER DEFAULT 0 NULL, "agree" INTEGER DEFAULT 0 NULL, "disagree" INTEGER DEFAULT 0 NULL, "create_by" INTEGER NULL, "create_time" TIMESTAMP NULL, "update_time" TIMESTAMP NULL, "delete_time" TIMESTAMP NULL )CREATE TABLE IF NOT EXISTS "t_user" ( "id" SERIAL NOT NULL primary key, "name" VARCHAR(140) NULL, "avatar" varchar(380) null, "score" int NULL, "create_time" timestamp NULL, "update_time" timestamp NULL, "delete_time" timestamp NULL );
The text was updated successfully, but these errors were encountered: