![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi All, In MySQL's command line client, if you end a query with \G (as opposed to \g) it outputs results in vertical format instead of the usual table format (handy as it makes tables with large numbers of columns a bit more readable). Is this possible in Ingres? I'm pretty sure the answer is no. I've just read the manual and can't see anything that would say otherwise. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I've just been told PostgresSQL does this with a \x toggle switch. So the session starts in tabular, the first \x converts it to vertical, the next \x converts it to tabular and so on. I know Geraint Jones was planning a few terminal monitor additions for the UKIUA codesproint in Slough, 4-6th June. Perhaps I can persuade him to add this as well. |
#6
| |||
| |||
|
|
I know Geraint Jones was planning a few terminal monitor additions |
#7
| |||
| |||
|
|
I know Geraint Jones was planning a few terminal monitor additions Well, since Marty mentions it there are a few small changes I was looking at. Nowhere near submissible as they stand I'm sure, and no design spec yet (that's doing things the wrong way round really isn't it...) |
|
Briefly the changes are: \sh <command> (if a command's specified run it & return, rather than starting an interactive shell - trivial change) \redir <file> (send query output to a file) \colformat colname format (if a following query includes column name "colname", output it using display format "format" - just pulling some of the existing report writer display formatting into tm) |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Nevertheless, if there's to be a sprint this year [...]. |
#10
| |||
| |||
|
|
How is /redir different from /script? |
![]() |
| Thread Tools | |
| Display Modes | |
| |