Concatenation issues

前端 未结 3 1059
后悔当初
后悔当初 2021-01-25 21:07

I have a table \"Patient\" which has 5 fields.

CREATE TABLE PATIENT
(PAT_ID         CHAR (4) PRIMARY KEY,
 PAT_NAME       VARCHAR (7),
 ADMITTED       DATE,
 ROO         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-25 21:49

    SELECT CONCAT(PAT_ID, ' ', PAT_NAME) AS Patient,
        DOCTOR AS Doctor, ROOM AS Room, ADMITTED AS Admitted
    FROM PATIENT
    

提交回复
热议问题