2011-12-08 32 views
2

我學習sqlite3的打印換行符。 我想插入兩個表格之間的分隔符,我該怎麼做?我怎麼在sqlite3的

-- show Table [exam]                     
SELECT * from exam; 

-- here I wanna print a newline as separator 
-- how to do this? 

-- show Table [examlog]                    
SELECT * from examlog; 

回答

2

本身上線試

select ''; 

+0

謝謝,它workds。 – CCC

0

3.7.16有一些新的core functions。隨着CHAR()的任何字符可以寫成:

char(X1,X2,...,XN) The char(X1,X2,...,XN) function returns a string composed of characters having the unicode code point values of integers X1 through XN, respectively.

2

如果它是任何使用的還是:

.print '' 

將在輸出打印新的生產線。