openGauss=# \set PROMPT2 TEST
openGauss=# select * from HR.areaS TEST;
area_id | area_name
---------+--------------------
1 | Europe
2 | Americas
4 | Middle East and Africa
3 | Asia
(4 rows))
PROMPT3
当执行COPY命令,并期望在终端输入数据时(例如,COPY FROM STDIN),显示提示符。
使用变量PROMPT3显示COPY提示符:
openGauss=# \set PROMPT3 '>>>>'
openGauss=# copy HR.areaS from STDIN;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
>>>>1 aa
>>>>2 bb
>>>>\.