Oracle实现Mysql里的G标志

Leave a Comment2009年09月16日 作者: 大头刚 

这篇文章我曾经在chinaunix的blog发表过,现在转过来。
mysql中提供了一个G [g] 标志,放到sql语句后,可以使一行的每个列打印到单独的行。例如:

mysql> select * from test limit 2\G;
*************************** 1. row ***************************
test1: 0
test2: 0
test3: 0
*************************** 2. row ***************************
test1: 0
test2: 0
test3: 0
2 rows in set (0.02 [...]