Code formatting problem

The buggy code formatting or is it just that I can't find the right combination of settings? I hope it's the last and someone here may know how to get it

After setting the parameters, I think I want to get a simple SQL formatted like this.
{noformat}
 select username
,sid
,serial#
   from v$session
  where sid  = 11
  and(status = 'ACTIVE'
  or status  = 'INACTIVE')
{noformat}
Ignore the fact that the actual query is not logical...

The first problem is that the different columns are aligned to the left and lika not indented, I wish they were.

The second (and much smaller) are that the and/or are not indented as keywords. I would get SQL for formatting like this.

{noformat}
 select username
       ,sid
       ,serial#
   from v$session
  where sid    = 11
    and(status = 'ACTIVE'
     or status = 'INACTIVE')
{noformat}
How can I make the code for formatting of result in the SQL above (in particular the alignment of columns)?

Hi Mathias,.

The alignment of the columns is a tab- so, if you set the large tab it almost looks OK - say 4 characters or more. Registered bug: Bug 12605246 - COLUMNS ONLY by TABS IN DO NOT ALIGN WITH the FIRST COLUMN AFTER SELECT

There is a framework to double dash the AND or OR who could help him with your second point.

-Turloch
Team SQLDeveloper

Tags: Database

Similar Questions

  • Dell laptop 14zxps with windows 7... I get the error code 43 problem when I connect my USB on my laptop

    Hey, I have a laptop of dell 14zxps with windows 7... I get the error code 43 problem when I connect my USB to my laptop... n this laptop is designed in a way where the battery cant b removed... Please help me on how my USB is started again here... Thank you :D

    Try this.

    http://support.Microsoft.com/kb/817900

  • see the key code is problem

    see the key code is problem

    Hello

    did you purchase your product of these companies like Amazon? If Yes, this isn't a serial number, only a code with which you can request a serial number from Adobe. Please take a look at http://helpx.adobe.com/x-productkb/global/find-serial-number.html. (Start here: How did you purchase your product?)

    The next part, so I don't see at the very least, ceased to exist on my Adobe website, everything happens in the link above. I leave as an info yet, he could still fit for you. For this purpose, please click your way through your Adobe Store and find the button "get serial number". Fill in the form and after awhile, you will get the real serial number.

    Hans-Günter

  • Button formatting problem

    I'm having the button formatting problems in the footer of a muse (A Virtual Colorado fly fishing Field Guide) site and wonder if anyone can give some insight into what goes wrong.

    There are two buttons.  The 'Business' button text is formatted as bold Helvetica 14 points.  The 'Links' button is the same formatting, but has also 10 points 'Space before' in order to center the text in the button.  When I go to the home page of the site, Business button shows the text at the top of the key and the links in the Center as planned.  If I navigate to any another page the text of the button Business has been moved to the Center and the text of links to the bottom of the button and the button links has stretched vertically.

    Why would the buttons have this behavior?

    Just rebuilt the button.  Rather than start with a text box, used the State of the widget library button.  That seems to fix the problem.

  • Erratic Code formatting

    Hello, after I run 'Apply the formatting of Code' to a HTML file (none of them, including a brand-new created by file/new...), the source becomes all concentrated upward together. It works very well with CSS documents. I have configured the formatting under "Edition/Préférences/Code Format" and was working well so far. I use Dreamweaver CS6 on Windows 7 64 bit home edition. Any suggestions on how to fix this? Thank you very much.

    Clear Cache corrupted in DW

    http://forums.Adobe.com/thread/494811

    Nancy O.

  • How to convert the entries in the zip code format valid UK

    I want to take an entry of users and convert it to a format of postal code valid UK. Specifically, I want to add a space to the topic, if they are not entered in it.

    then "G13NU" is converted to "G1 3NU.

    Valid postal code formats are

    A0 0AA eg G1 3NU
    A00 0AA
    A0A 0AA
    AA0 0AA
    AA00 0AA
    AA0A 0AA

    Has anyone done similar before, or have any advice?

    Hello

    What exactly are the rules for where we need to go?

    Will there always be exactly 1 space, and it will always immediately before the last digit?
    If so:

    REGEXP_REPLACE ( REPLACE (postal_code, ' ')
                , '([0-9][^0-9]+$)'
                , ' \1'
                )
    

    REPLACE (in the first argukment to REGEXP_REPLACE) is required only if the original zip_code can contain spaces.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
    Highlight a few places where the expression above does not do what you need and explain how you get the correct results of the data in these places.
    Always tell what version of Oracle you are using.

  • Divided vertically format problem code

    I local files on the left and the code or files remotely on the right. The vertical bar that can be moved to the left or the right never stays in place. For example if I click on the button "Expand to display local and remote sites", the bar verical collaps left only the display of file names, I'll manually have to bring him back to the middle of the screen for other file details will show once more.

    My environment:

    10.8.2 OSX

    Dreamweaver CS6

    Can you try to empty the cache? http://forums.Adobe.com/thread/494811

    If it persists, and if it happens all the time, it may be a bug. File a bug report: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

    -ST

  • HTML formatting problem

    So I will try to create an app pulls an RSS feed of my website and I put the in a label to display in a page but for some reason, sometimes the HTML coding is wobbly and don't format correctly, simply display the code.

    example:

    Other times it turns perfectly:

    My code is as follows:

    QString TLDRApp::findText(const QVariant item)
    {
        QVariantMap itemData = item.toMap();
        QString description;
                if (itemData.contains("content:encoded")) {
                    description = itemData["content:encoded"].toString();
                }
         return description;
    }
    
    Label {
    
    id:contentLabel
    
    text: " + chosenItem.content + ""
    
    }
    

    What format can I add to make sure that all url links, paragraph breaks, bold / italic letters and make sure size of police through and strip all other formatting that can cause the problem?

    These are the only supported tags, so I was wondering if I could do a remove() and just dwell on everything except for:

    
    
    

    any help will be thanks and marked solutions.

    Thanks in advance, Brandon

    Entire web sites are best displayed using a WebView.

    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__webview.html

  • Solved: Error 0x80072ee2 Code and problem of invalid key when the key is invalid

    The problem with computer problems, it's that they can lose a huge amount of time trying to find the right solution that actually works.
    The reason why I created this issue and the solution is because I don't think that anyone allowed to solve the problem and I don't have the time to answer each question.

    Maybe the administrator can warn everyone and copy the message to the response section wherever it is, thank you.

    This solution is the one that actually worked properly and should work fine for 99% of all non only; 0x80072EE2 but key issues not valid genuine key is used.

    I don't remember if it was before I ran the Windows 7 disc or after completing what I got the following error message
    "Windows Activation error Code: 0x80072EE2.

    1)< show="" me="" other="" ways="" to="" activate="">
    2)< use="" the="" automated="" phone="" system="">
    3)< check="" nearest="" location="" (country)="">< next="">
    4)< telephone="" toll-free="" telephone="" number="">
    (A)< option:="" 1="">
    (B)< #="">
    (C) enter the activation number into each box when asked to do so
    1: after entering the right number in each box-< #="">
    2: If you no more; don't remember the exact number you placed in the area or you place
    wrong number
    It is easy to replace (edit) the wrong number and continue.

    BEFORE YOU INSTALL OR REPAIR WINDOWS 7 OR ANY OPERATING SYSTEM *.
    SOFTWARE BACKUP ALWAYS 1 PREFERABLY ON AN EXTERNAL HARD DRIVE *.
    BUT, OF COURSE, YOU CAN USE USB DRIVES OR DVD RECORDABLE RECORD... *.

    Install or repair Windows 7 (in my case, Home Premium 64 bit OEM but the similar method should be used for other windows): -.

    (1) insert my OEM of Windows 7 Home Premium 64 bit disc in my drive (in my case E:\ Drive BD - ROM combo
    -You probably D:\ DVD burner)
    ((2) IF the disc runs automatically and then go to 3) below
    (A) if the disc does not automatically
    1: Start (red, yellow, green, blue & flag (icon) in a circle) in the lower left corner of the screen
    in the taskbar
    2: select it (left click on the mouse button)-computer-select the drive (device with removable storage).
    you put the Windows disk in
    3, select the drive-Yes (if displayed) user account control
    (3) Windows 7 (Windows Installer) is displayed
    (A)< install="" now="">
    (B) install Windows - Get important updates for installation appears
    1:< go="" online="" to="" get="" the="" latest="" for="" installation="" (recommended)...="">
    2: I left checked (selected) the box, which refers, "I want to help improve the windows installation.
    -Useless - do not trust MS & partners - MS should provide free assistance
    especially when their software created problems in the first place.
    3: check the, "accept the terms of the license" (automatically without reading).
    because you have no choice if you want to use.
    4:< next="">
    5: "which type of installation do you want?
    A: I chose < upgrade=""> -because if it solves the problem it would save a lot of time.
    B: custom (Advanced) - to only use as a last resort and after backup all data and applications programs.
    -It is easy to format and install Windows 7 and other operating systems.
    -The main problem is, (the huge amount of time)
    find and restore all; drivers, applications (programs), emails.
    (C) to continue to follow the Wizard (information/instructions)
    (4) I followed the wizard - to give accurate information to reinstall Windows 7, but I received an error message
    -J' have probably first uninstall Windows 7.
    -NB! If you upgrade all software from a previous version do not remove the previous version
    unless directed to do, because he needs evidence that a previous version exists.
    -If you install a full version of a software, it's usually best to uninstall the previous version
    before installing the new version.

    Hope that this record many people losing large amounts of time, I did.

    Before I forget, every time (including recently) I asked for Activation of the aid staff
    They told me to contact Microsoft (MS) Technical Department
    (even to resolve this error: 0x80072EE2, which is a problem of Activation).

    Therefore, I would never check for MS and partners to obtain automatically the information from my computer.
    Occasionally, I'll send messages manually when asked.

    Solved: Error 0x80072ee2 Code and

    The key problem of invalid when key is valid

     

    The problem with computer problems, is that they can lose a huge amount of time

    try to find the right solution that actually works.

    Why I created this issue and the solution is because I don't think that no matter what

    No one helped to solve the problem, and I don't have the time to answer each question.

    Maybe the admin can warn everyone and copy the message to the response section

    wherever it is, thank you.

    This solution is the only one that actually worked properly and

    should work fine for 99% of all and not only;

    0x80072EE2 but key issues not valid genuine key is used.

    I don't remember if it was before I ran the Windows 7 disc or

    After completing what I got the following error message
    "Windows Activation error Code: 0x80072EE2.

    1)< show="" me="" other="" ways="" to="" activate="">
    2)< use="" the="" automated="" phone="" system="">
    3)< check="" nearest="" location="" (country)="">< next="">
    4)< telephone="" toll-free="" telephone="" number="">
    (A)< option:="" 1="">
    (B)< #="">
    (C) enter the activation number into each box when asked to do so
    1: after entering the right number in each box-< #="">
    2: If you no more; do not remember the correct number

    who has placed you in the box or you put the wrong number
    It is easy to replace (edit) the wrong number and continue.

    BEFORE INSTALL OR REPAIR - WINDOWS 7 OR ANY OPERATING SYSTEM
    ALWAYS 1 BACKUP SOFTWARE. PREFERENCE-HDD EXTERNAL

    BUT, YOU CAN USE A USB DRIVE OR RECORDING ON RECORDABLE DVD DISCS...

    Install or repair Windows 7 (in my case, Home Premium 64 bit OEM)

    but, the same method should be used for other windows):-

    (1) insert my OEM of Windows 7 Home Premium 64 bit disc in my drive

    (in my case E:\ BD - ROM combo drive - you probably D:\ DVD burner)
    ((2) if the disc runs automatically and then go to 3) below
    (A) if the disc does not automatically
    1: Start (red, yellow, green, blue & flag (icon) in a circle)

    in the lower left corner of the screen on the task bar
    2: select it (left click on the mouse button)-computer-select the drive

    (Device with removable storage), you put the Windows disk in
    3, select the drive-Yes (if displayed) user account control
    (3) Windows 7 (Windows Installer) is displayed
    (A)< install="" now="">

    1: after you place Windows in the drive do not touch keyboard keys

    while restarting the computer (once it has been shut down

    Just enter the password to log back on and ignore the error messages
    (B) install Windows - Get important updates for installation appears
    1:< go="" online="" to="" get="" the="" latest="" for="" installation="" (recommended)...="">
    2: I left checked (selected) the box, which means,.

    "I want to help improve the windows installation.
    -Useless - do not trust MS & partners - MS should provide free assistance
    especially when their software created problems in the first place.
    3: check the, "accept the terms of the license" (automatically without reading).
    because you have no choice if you want to use.
    4:< next="">
    5: "which type of installation do you want?
    A: I chose< upgrade="">

    -Because if it solves the problem it would save a lot of time.
    B: custom (Advanced)

    N ' use as a last resort and after backup all data and applications programs.
    -It is easy to format and install Windows 7 and other operating systems.
    -The main problem is, (the huge amount of time)
    find and restore all; drivers, applications (programs), emails.
    (C) to continue to follow the Wizard (information/instructions)
    (4) I followed the wizard - to give accurate information to reinstall Windows 7,

    but I got an error message.
    -J' have probably first uninstall Windows 7.
    -NB! If you upgrade all software from a previous version

    do not delete the previous version unless told to do so,

    because he needs proof that there is a previous version.
    -If you install a full version of a software, it's usually best to uninstall - previous version
    before installing the new version.

    Hope this save many people lost large amounts of time that I lost.

    Before I forget, every time (including recently) I asked for Activation of the aid staff
    They told me to contact Microsoft (MS) Technical Department
    (even to resolve this error: 0x80072EE2, which is a problem of Activation - I couldn't believe it).

    Therefore, I would never check for MS and partners

    for the information automatically to my computer.
    But, sometimes I send messages manually when asked.

    MS have done at least millions of people that help the MS, but still

    MS refuses to provide Support Free Chat in the world.

    -How much profit is MS wants to do,

    especially in situations when in fact MS software causes problems.

    To save space the administrator can delete previous versions of courrupted.

    I only hope that the conversion software does not change the format of this version too.

  • SVG code - loading problem

    I want to generate the SVG Code of my image in Illustrator, but it does not work.

    Whenever I press the button "Code SVG", I have a WINDOWS error message saying that I have no software to open this format.

    svgpub.png

    I can't yet take a software on my pc to try to open this file. I was even on Windows Store to download recommended software and in the end, it was the same result over and over again: "no installed software can open this type of file.

    I also tried on my laptop (windows 8) same problem.

    I hope someone knows how to solve this problem.

    Thank you

    Clean your file associations. Another tool is always blocked (a browser, no doubt).

    Mylenium

  • HR 9,01 table legends Format problem

    I created WebHelp in RH 8 / CHT 2.5. The legends of the table are fine, Arial, blue, italic

    I made a few minor updates to the table of contents (not the legend) in FM 10 / CHT 3.0.

    I open the project in RH9 / TC 3.0 and regenerate.

    The table caption is Times Roman black.

    I can't change the legend of table format to be anything besides than Times Roman black.

    The HR records show the correct format.

    Here is what I tried:

    I tried manually insert a table and put in the form of the legend.

    I tried to create a CHM file instead of a file from WebHelp. The same problem.

    I tried with two different projects. The same problem.

    I did not create a new project.

    Am I missing something, or is this a bug?

    Thanks for the clues.

    I tried to attach screenshots here, but I have disabled IE tweaks, because nothing happens when I click on the camera.

    Welcome to our community

    I will start by saying openly that I am a big ole frame ignoramous. I'm a guy of RoboHelp.

    I think for the style more precisely my legends of table I first have to change the CSS file by using Windows Notepad. Pop the following code in the file:

    Once you do this, your dialog box Styles will have an entry of legend in the other category you can format.

    Seems to work on my own setup. I hope it will work for you.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • Text Format problem

    Hi all

    I am building an application in AS3, but I'm the problem in text formats.

    I'm sure that's not a big problem., but I'm new so can not make sense for him.

    I have three text fields of type entry in my application, where when I type it show preview on the right side in the other fields of text in real-time using earphone Event.CHANGE. Now I have to apply the format on all separately three fields. (Bold, italic, size etc.). But when I use it to make "BOLD" using the "BOLD" button, the text in all three text fields change to "BOLD" at once.

    What I need is to apply the format of separately for each field using a "BOLD" text, Italic button etc.  The format will apply the last text field edited or by selecting the text field in the preview and change its formula.

    Here's the best example if formats the text I want.

    http://www.Spreadshirt.com/create-your-own-t-shirt-C59

    I hope that the experts will understand and can give me suggestions.

    Here is the code example, what I'm doing...

    Its share of demand.

    Import fl.controls.Button;

    var txtF1:TextFormat = new TextFormat();
    var txtF2:TextFormat = new TextFormat();
    var txtF3:TextFormat = new TextFormat();

    var b1:Boolean = new Boolean();
    var b2:Boolean = new Boolean();
    var b3:Boolean = new Boolean();

    var preview1:TextField = new TextField();
    var preview2:TextField = new TextField();
    var preview3:TextField = new TextField();

    function previewfirst(e:Event):void
    {
    Tf1.text = Preview1.text;
    Preview1.x = tf1.x + tf1.width + 20;
    Preview1.y = tf1.y;
    addChild (preview1);

    boldBTN.addEventListener (MouseEvent.CLICK, makeFirstBold);
    }

    function previewsecond(e:Event):void
    {

    preview2. Tf2.text = text;
    preview2.x = tf2.x + tf2.width + 20;
    preview2.y = tf2.y;
    addChild (preview2);
    boldBTN.addEventListener (MouseEvent.CLICK, makeSecondBold);
    }

    function previewthird(e:Event):void
    {

    preview3. Text = tf3.text;
    preview3.x = tf3.x + tf3.width + 20;
    preview3.y = tf3.y;
    addChild (preview3);

    boldBTN.addEventListener (MouseEvent.CLICK, makeThirdBold);
    }


    TF1.addEventListener (Event.CHANGE, previewfirst);
    TF2.addEventListener (Event.CHANGE, previewsecond);
    TF3.addEventListener (Event.CHANGE, previewthird);


    function makeFirstBold(e:MouseEvent):void
    {
    If (B1)
    {
    txtF1.bold = false;
    Preview1.setTextFormat (txtF1);
    } else
    {
    txtF1.bold = true;
    Preview1.setTextFormat (txtF1);
    }
    }

    function makeSecondBold(e:MouseEvent):void
    {
    If (B2)
    {
    txtF2.bold = false;
    preview2.setTextFormat (txtF2);
    } else
    {
    txtF2.bold = true;
    preview2.setTextFormat (txtF2);
    }
    }

    function makeThirdBold(e:MouseEvent):void
    {
    If (B3)
    {
    txtF3.bold = false;
    preview3.setTextFormat (txtF3);
    } else
    {
    txtF3.bold = true;
    preview3.setTextFormat (txtF3);
    }
    }

    Yes, that's the reason. Change:

    this["tf" + i].addEventListener(Event.CHANGE, onTextChange);
    

    And so on.

  • Output and group records into several column format problem

    Hi all

    I'm banging my head on the wall with this one. I have a query that displays the result in the form of two columns, it works fine.

    I have a problem when I try to use "group"for the field DSC1 doesn't show duplicates."  He transforms the output in column 2, column 3 and column 4 spots white all along.

    Someone knows how can I get it to display 2 columns of output and does not show in double DSC1 fields? The following are examples of what is happening:


    1 example of what he does without group (note to Apple is twice, which is not):

    Apples apples

    Orange peaches

    banannas grapes

    What I need to do (only show each DSC1 once and continue with the format of two columns) :

    oranges apples

    Fisheries banannas

    grapes

    Here is the code I use:

    < cfquery name = "getProduct" datasource = "mydb" >
    SELECT * from ecitm
    WHERE DSC1 <>' '
    order by DSC1

    < / cfquery >

    <! - start the 2-column output table - >

    < table border = "0" width = "90%" border = "0" align = "center" cellpadding = "5" cellspacing = "5" >

    < cfset newrow = false

    < b >
    < cfoutput query = "getProduct" group = "DSC1" >

    < cfif newrow EQ "true" >
    < b >
    < / cfif >
    < td >
    #DSC1 #.
    < cfif DSC2 NEQ "" > "".
    < br >
    #DSC2 #.
    < / cfif >

    < br >
    < a href = "DetailsList.cfm? ID = #getProduct.ID # & litm = #getProduct.LITM #" > VIEW < /a > DETAILS
    < table >

    < cfif getProduct.currentRow MOD 2 EQ 0 >
    < /tr >
    < cfset newrow = true >
    < cfelse >
    < cfset newrow = false >
    < / cfif >


    < / cfoutput >
    < /tr >
    < /table >

    The currentRow always property will count the number or records in the record setting loop, if you their output or not.

    Since you are not the output values for each record in the Recordset, you must count the itterations yourself.

    Put a meter of itteration before the loop.

    Update the counter at the top of the loop.

    OR on newer versions of CF

    Reset the counter in the true clause of the block, where you also define new line. >

    Then use the variable in the iit instead the currentRow property to determine the number of items have been posted.

    **** OR ****

    You could do a simple SQL command does not get duplicates first and then use a loop of simple without any of the grouping and additional logic that you do.

    
    
    SELECT DISTINCT *
         FROM ecitm
         WHERE DSC1 <> ' '
         ORDER BY DSC1
    
    
    
    
         #DSC1#
         
    
        
    
    
    
  • DVD CD-ROM on Equium A200 - error Code 37 problem

    Hello

    My laptop does not recognize not the DVD or CD even if the laptop is only 2 months old. When I go to Device Manager came up with an error message: Windows cannot initialize the device of this material (Code 37) driver.

    Anyone know if it is an easy problem to solve?

    Any advice would be much appreciated!

    Perhaps this accelerated procedure could contribute to:

    Remove the drive from the Device Manager CD/DVD and restart the laptop.
    Then access the registry and delete the Upperfilters and Lowerfilters completely from the following registry key values:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class {4D36E965-E325-11CE-BFC1-08002BE10318}

    Restart again

    Good bye

  • ECS A - format problem 50 522

    I bought toshiba satellite a 50 522 and xp home came with it pre installed, other day I wanted to format the pc well I had a cd of xp professinal and installed, I thought that he format edition family but not good, now I have 2 xp on my house and professinal pc, I want to format home edition! I studied some info and they said you must make some settings in the Bios... but when I touch clcik DEL pc startup nothing happens... someone can help me how can I do with toshiba laptop?

    Hello

    Well, I put t know what is the problem? If you install the Windows Xp pro, the operating system asks you if you want to format the HARD drive. As far as I know, you get a lot of options. You can format the whole HARD disk or partition only. In addition, you can choose where you want to install the operating system. In my opinion, you need to reinstall Win XP Pro and please check this format options.
    In addition, you can enter the BIOS by pressing ESC.

    Good bye

Maybe you are looking for