{"id":177,"date":"2012-11-16T13:14:16","date_gmt":"2012-11-16T13:14:16","guid":{"rendered":"http:\/\/tomas.papp.me.uk\/?p=177"},"modified":"2012-11-16T13:14:16","modified_gmt":"2012-11-16T13:14:16","slug":"formatovanie-vystupu-z-sqlplus","status":"publish","type":"post","link":"https:\/\/tomas.papp.me.uk\/?p=177","title":{"rendered":"Formatovanie vystupu z sqlplus"},"content":{"rendered":"<p>Uzitocne v napr. skriptoch<\/p>\n<p>COLUMN<br \/>\nSpecifies display attributes for a given column, such as, column heading text, column heading alignment, data format, column data wrapping.<br \/>\nAlso lists the current display attributes for a single column or all columns.<\/p>\n<p>Syntax: \tCOLUMN [ {column_name | expr} ] option<br \/>\nCOL \tLists current display attributes for all column_name currently defined.<br \/>\nCOL column_name \tLists current display attributes for column_name.<br \/>\nCOL expr \tLists current display attributes for expr.<\/p>\n<p>ALIAS alias<br \/>\n\tAssign an alias to a column_name, which can be used by BREAK, COMPUTE, and other COLUMN commands. Example: COL em_salary+em_bonus ALIAS tot_income<br \/>\nCLEAR<br \/>\n\tResets the display attributes for the column_name to default values. To reset the attributes for all column_name s, use the CLEAR COLUMNS command. CLEAR COLUMNS also clears the display attributes for that column_name.<br \/>\nFOLD_AFTER<br \/>\n\tInserts a carriage return after the column heading and after each row in the column. SQLPlus does not insert an extra carriage return after the last column in the SELECT list.<br \/>\nFOLD_BEFORE<br \/>\n\tInserts a carriage return before the column heading and before each row of the column. SQLPlus does not insert an extra carriage return before the first column in the SELECT list.<br \/>\nFORMAT format_model<br \/>\n\tSpecifies the display format_model of the column. The format_model specification must be a text constant such as A10 or $9,999&#8211;not a variable. Example: COL emp_name FOR A15<br \/>\nHEADING text<br \/>\n\tDefines a column heading to text. If HEADING is not used, the column&#8217;s heading defaults to column_name or expr. If text contains blanks or punctuation characters, it must be enclosed with single or double quotes. Each occurrence of the HEADSEP character (by default, | (pipe) ) begins a new line. Example: COL last_name HEADING &#8216;Employee | Name&#8217; produces a two-line column heading.<br \/>\nJUSTIFY {LEFT | CENTER | RIGHT}<br \/>\n\tAligns the heading, not data. Without the JUSTIFY clause, headings for NUMBER columns default to RIGHT and headings for other column types default to LEFT.<br \/>\nLIKE {expr | alias}<br \/>\n\tCopies the display attributes of another column_name or expr (whose attributes which have already been defined with another COLUMN command). LIKE copies only attributes not defined by another clause in the current COLUMN command.<br \/>\nNEWLINE<br \/>\n\tStarts a new line before displaying the column&#8217;s value. NEWLINE has the same effect as FOLD_BEFORE.<br \/>\nNEW_VALUE variable<br \/>\n\tSpecifies a variable to hold a column_name value. This variable can be referenced in the variable in TITLE commands. Use NEW_VALUE to display column values or the date in the top title.<br \/>\nNOPRINT | PRINT<br \/>\n\tControls the printing of the column (the column heading and all the selected values). NOPRINT turns off the screen output and printing of the column. PRINT turns the printing of the column on.<br \/>\nNULL text<br \/>\n\tReplace a null value with &#8216;text&#8217;. The NULL clause of the COLUMN command overrides the SET NULL clause for a given column.<br \/>\nOLD_VALUE variable<br \/>\n\tSpecify a variable to hold a column value. (see BTITLE)<br \/>\nON | OFF<br \/>\n\tControls the status of display attributes for a column. OFF disables the attributes for a column without affecting the attributes&#8217; definition. ON reinstates the attributes.<br \/>\nWRAPPED | WORD_WRAPPED | TRUNCATED<br \/>\n\tSpecifies how to treat long CHAR strings. WRAPPED wraps string within the column bounds, begins new lines when required. WORD_WRAP is enabled, SQLPlus left justifies each new line, skipping all leading whitespace (for example, returns, newline characters, tabs and spaces), including embedded newline characters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Uzitocne v napr. skriptoch COLUMN Specifies display attributes for a given column, such as, column heading text, column heading alignment, data format, column data wrapping. Also lists the current display attributes for a single column or all columns. Syntax: COLUMN [ {column_name | expr} ] option COL Lists current display attributes for all column_name currently [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-oracle"],"_links":{"self":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=177"}],"version-history":[{"count":5,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}