Copy/paste sql strings from development ide's.

Our team have just started using this tool in favor of the well-known toad. Frist impressions are really good, so keep up the good work! But sometimes you find that a very simple feature has great impact on coding effectiveness.
Very often people copies sql strings from their java development ide's and want to test this in their database tool. For instance:
" SELECT ... " +
" FROM ...." +
" JOIN ...." +
" WHERE ....";
Should become
SELECT ...
FROM ...
JOIN ...
WHERE ....
The same goes backwards, if you write a sql statement in your database tool you would like to quickly convert it to a java string. This perhaps simple, but beloved by us, little feature was available in our previous tool, but I can't find it in sql developer. I've temporarily solved this by using the search-and-replace dialog box with regular expressions. This is however quite awkward to do each time so my options are:
* Assign this search-and-replace operation to a hot key (is this possible?)
* Write an extension (I have trouble finding good documentation of extension development for sql developer)
* Request a feature (will probably take time even if it's accepted)
Could anyone give me some hints on how to solve this?
Or have I missed anything, is it already available somewhere in the tool?
Thanks.

Hi,
sometimes you find that a very simple feature has great impact on coding effectiveness.Tell me about it ;-)
* Assign this search-and-replace operation to a hot key (is this possible?)
By default, ctrl-r does a search-and-replace. There's a history drop-down to have a quick access to your regular expression once you've entered it once.
* Write an extension (I have trouble finding good documentation of extension development for sql developer)
You have some samples on Kris' blog.
* Request a feature (will probably take time even if it's accepted)
I agree, think it's difficult to make it some universal feature everyone wants to use.
Another thing that comes to mind is recording a macro (see the tip on the Exchange for help on this).
And I supose you could even make an external tool for this, using a batch file or something. This is much easier than an writing an extension i guess, and you can write it in the language you like best...
Hope this helps,
K.

Similar Messages

  • I'm in trouble with copy paste some text from Word to DW mx 2004

    I'am a new developer in webdesign. I'm doing my first site to
    a cliente. I'm in trouble with copy paste some text from Word to DW
    mx 2004. In the Edit / Preferences / General category i have the
    spelling dictionary in Portuguese (Brasilian). If I wrote the text
    in Portuguese directly from DW i can see the letters with ( ç
    ã é ... ) and in the browser testing ( IE 6.0.2 with sp2
    and FireFox 1.0.7 ), but with copy paste from the text in Word in
    Portuguese when i bring it to DW i can see the ( ç ã
    é ... ) in the beginnig but in the Browsers testing i can't,
    and then after a while i lose the ( ç ã o ...). Can
    anyone help me !?
    I need the work finish in next monday. Thanks a lot.

    Your line breaks will most likely be incorrect if you don't turn on the Japanese Composer.
    It is almost absolutely impossible to accomplish your goal without having a font - any font - installed on your system that has that glyph. However, if it's showing up in Word, than means that you must have that glyph installed, right? What font are you trying to use in InDesign? You might already know that Word will auto-substitute fonts when it encounters a missing glyph, so we really don't know what font is being used to render that one glyph. The whole sentence might be in MS Mincho but one glyph might be pulled from another font if MS Mincho doesn't have that glyph.
    That being said, you're going to break it if you don't know how to set Japanese type in ID. It's not something where you can just copy text out of email and paste into your English layout.

  • When I copy/paste a paragraph from a PDF doc, it pastes with no spaces between words. How can I fix this? I've searched everywhere for the solution but didn't find anyone had this issue.

    When I copy/paste a paragraph from a PDF doc (onto Facebook status bar, for example) it pastes with no spaces between words.  I.e: "The manhadajugofcoolwaterand offeredmeadrink." How can I fix this? I've searched everywhere for the solution but didn't find anyone had this issue. I'm new to Apple so any help will be much appreciated. Thanks!

    I can't speak about this occurring with FaceBook since I don't use FaceBook, but I see the same type of thing when I copy and pasted from websites. It doesn't always happen and I cannot find any particular set of circumstances under which it occurs or does not occur.
    I am merely responding to let you know that it happens to me as well and I have seen no way to correct it. I'm not so sure that there is a way to correct in in that it may have something to do with how the original text is formatted in the PDF or on the website and how it eventually "fits" into the text field or the area in which it is pasted.

  • Creating or copying application express users from development environment

    Hello,
    Hope someone can answer my question soon.
    I am kind of new to the application express development and to Oracle database too ( about 8 month). I developed an application on development environment at my work. Now it's time to deploy this application to test and production environment. This application is secured so I had an ACL page were I setup 2 users that they can view and edit data, and I setup myself as an admin for this application.
    I succsessfully deployed the application on the test and production environment but I cannot login and not other users. How do I setup or to copy same users from Development to production environment.
    I am using apex 3.0.1 and database 10g.
    on Development I have workspace called development and the schema is DEV. For production I have a workspace called production and the schema called prod. So I am dealing with different 2 workspaces and 2 different schemas but one database instance.
    Thank you in advance for your assistance.
    Kind Regards,
    Sofia.
    Edited by: user633945 on Oct 15, 2008 3:36 PM

    Hello,
    APEX has a utility to export the workspace and the users. In the application, go to export/import --> export --> workspace users (this is not the default view, and you’ll need to choose it). This will generate a SQL script you can import into the source instance.
    In general, it’s best to keep the same environment in the development (test) and production instances – The same workspace ID, name, and application ID. These are pre-condition to be allowed to import single page/components between the instances. Otherwise you will have to import the entire application, each time you need to update the application.
    In case you can’t maintain the same environment in your instances, you’ll need to manually edit the exported script. If the workspace already exist, you need to delete the ‘Workspace’ section. Then you’ll need to edit the user details, setting the default schema correctly.
    Hope this helps,
    Arie.

  • Is there a way to copy & paste a clip from the timeline in one project in to another project?

    Hello Popular Premiere Pontificaters,
    I am using Premiere 6 on a Windows 7 machine.
    Is there a way to copy and paste a clip from the timeline in one project in to another project?... I can copy my clip, but when I open the other project, it will not allow me to paste it in there... but I am able to copy and paste a clip within a single project.  I tried everything... pasting in to a new video track and pasting in to an existing video track in the second project, but the paste option simply isn't there when I open the second project.
    And if Premiere itself will not allow me to do this in any way, will a copy-paste clipboard type of accessory app allow me to do this?... if so, which is the best, trustworthy copy-paste app that is malware free?
    Thanks,
    digi

    Hi Bill Hunt,
    I just read the page that you provided about "Handles"... thanks allot for that ARTICLE.  In your article and the subsequent article HANDLES, "Transitions Overview: applying transitions" linked from your article, it indicates (in PrE and PrPro anyway - I'm in Premiere 6) that transitions can be applied to non-Video 1 tracks... the paragraph below is a quote from that "Transitions Overview: applying transitions" article...
    "Whatever is below the transition in a Timeline panel appears in the transparent portion of the transition (the portion of the effect that would display frames from the adjacent clip in a two-sided transition). If the clip is on Video 1 or has no clips beneath it, the transparent portions display black. If the clip is on a track above another clip, the lower clip is shown through the transition, making it look like a double-sided transition."
    So this indicates that transitions can be applied to non-Video 1 tracks since it is referring to content in tracks beneath a transparent fade that would show through... and only non-Video 1 tracks can be transparent and have other clips "beneath" them in the timeline, right?
    In the screenshot sample in your article at this LINK, I see the handles (referred to as B and E) and I can see in my monitor window how those handles would be represented by the two little bracket symbols {  }  ... you can see how they appear in my monitor window in Premiere 6 in this screenshot, and below, from a different thread that isn't related to this topic.
    But I'm still trying to figure out how the handles can be applied in the non-Video 1 tracks in the timeline to insert a transition (cross-dissolve) between two clips.
    Can you advise me on this?... I posted a separate thread HERE on this topic, but I haven't got any further with finding an answer.
    Thanks so much for your article,
    digi

  • I am trying to Copy paste some content from PDF reader with no success

    Hi,
    I am new here, hope I will find the answer to my prob.
    I am currently working on an Ebook I plan publishing, discussing affiliate marketing.
    I am using some resources from other Ebooks I purchased and have in hand.
    * While I am trying to copy paste some content, it does copy, but when trying to place it in a notepad file, the content is being copied as gibberish. (signs and spaces).
    I've tried using microsoft word, then i totally gets out of contrast.
    Did anyone experience something alike?
    Thank you.
    Mia.

    This is common. In this case it may be done to protect the copyright
    content of the ebook from reuse. Since the amount you can use under
    fair use is only a few sentences, it shouldn't take too long to
    retype...
    Aandi Inston

  • How to copy/paste texts/images from webpages in iBooks Author?

    Hi,
    I want to copy/paste text/image contents from webpages with iBooks Author, somehow images can't be copied, only texts can be copied with copy/paste editing. Wonder if there are any ways to include images with simple copy/paste?
    Tried to search iBooks Author help, could not find answers. Please help.
    Thanks

    Perhaps the people who spent a lot of time and money to produce the websites.....and who own copyright ...don't want anybody using their work without payment or credits. Have you contacted the websites owners to ask permission? 
    IF any person(s)  use anything from websites without permission apart from being to lazy to email to request permission....could face a legal action if and when the sites owners fins out. 
    There is another her misconception that "free" websites and content on "social media" such as the dreaded FaceBook....can be used without consequence. Almost all "free" websites are common licence material - which requires permission and those who give permission do so only for personal or none profit reproduction.
    i Use a blocking script on my websites which apart from preventing a right click...those who try are whisked off  my website to the the UK copyright website page which explains my rights! 
    You may wish to check out your iBooks contract with Apple and read their warnings on use of others copyright material. 
    You could ..and should contact the websites...explain what you want to use and why....and ask them if they can supply media.

  • Copy Paste cell/table from OpenOffice

    Hi,
    I have a problem pasting text from cells from OpenOffice Writer to Indesign cells because it's seems that unlike Microsoft Word, OpenOffice separate the different elements of a table by a carriage return and not by a tabulation.
    Does anyone know the solution?
    Thanks,
    Edouard

    I am not using CS3, but testing NeoOffice with CS2 I see the same behavior as with Excel.
    Tables come in as text with tabs between columns and paragraph returns between rows.
    Using Dave Saunders PopTabFromClip script allows pasting of the data into predefined tables.
    If you need to convert the text pasted in direct from NeoOffice to Tables, then the method is to go ahead and paste, then select the text and use the Table menu option Convert Text to Table.
    I cannot comment on OpenOffice as I am not seeing the behavior reported by Edo75.
    -mt
    PS: I now see that Edo75 is using the Writer part (Word equivalent) of the office instead of the Spreadsheet (Excel equivalent). Could that be the issue?
    Edit: Yep, same issue. Try pasting into a new Spreadsheet, then copy the data again before pasting into InDesign. That fixed the behavior for me.

  • How to copy/access a string from inside the driver

    is there any equivalent to strncpy() to use inside
    the driver for copying user sent data to local buffer .
    i used I_STRioctl and assigned struct to strioctl.ic_dp
    as shown below..
    char * buf;
    struct user-data
    int minor;
    char* data;
    struct user_data u_data;
    buf="hello world"
    u_data.minor=0;
    u_data.data=buf;
    strioctl.ic_dp=&u_data;
    strioctl.ic_len=sizeof(struct user_data);
    ioctl(fd,I_STR,&strioctl);
    when i tried to copy/access the string sent by the user application from inside the driver, machine gets into
    booting ...
    here what i did was
    in wput routine
    struct user_data *u_data;    
    u_data =(struct user_data*)mp->b_cont->b_rptr;      
    cmn_err(CE_NOTE,"minor= %d",u_data->minor);
    till here working well..
    where as..
    cmn_err(CE_NOTE,"data= %s",u_data->data);
    causing panic to the system...booting happens.
    please help me out ..
    thank u all
    ss vasu

    looks like the data pointed to by 'data' is not copied from user space to kernel space.
    u_data.data=buf, just makes pointer assignment, does not copy data pointed to by buf.
    two solutions:
    1. Declare data as a array(char data[10] or something
    2. Copy buf after the structure and point data to it. strioctl.ic_len should be set to sizeof(struct) +
    data size.
    -Vijay
    is there any equivalent to strncpy() to use inside
    the driver for copying user sent data to local buffer
    i used I_STRioctl and assigned struct to
    strioctl.ic_dp
    as shown below..
    char * buf;
    struct user-data
    int minor;
    char* data;
    struct user_data u_data;
    buf="hello world"
    u_data.minor=0;
    u_data.data=buf;
    strioctl.ic_dp=&u_data;
    strioctl.ic_len=sizeof(struct user_data);
    ioctl(fd,I_STR,&strioctl);
    when i tried to copy/access the string sent by the
    user application from inside the driver, machine gets
    into
    booting ...
    here what i did was
    in wput routine
    struct user_data *u_data;
    u_data =(struct user_data*)mp->b_cont->b_rptr;
    r;
    cmn_err(CE_NOTE,"minor= %d",u_data->minor);
    till here working well..
    where as..
    cmn_err(CE_NOTE,"data= %s",u_data->data);
    causing panic to the system...booting happens.
    please help me out ..
    thank u all
    ss vasu

  • Disabling copy paste screenshot function from webdypro output

    Hi,
    I am working on a webdynpro application. I have used formatted text view element the outout view. The requirement is when this text is displayed in output it should not be copied pasted nor screenshot can be taken for security reason.
    This means when I execute the program and the text gets diesplayed in Internet Explorer copy paste function should be disable.
    Printscreen option should also be disabled.
    Waiting for your response.
    Regards,
    Abhishek

    I don't believe that anyone ever said that you could disable cut and paste.  This too is a function of the browser interacting with the OS.  There is nothing that you can do from Web Dynpro to effect that.
    I did a google search to how to avoid cut and paste in the browser.  Even with full control over javascript and the HTML rendering (which you don't have in Web Dynpro) this is very difficult to do.  Some suggestion are to use a CSS with a transparent image overlay or to render an image with the text.  Even some of these approaches can be worked around by someone persistent enough - by viewing source for instance. 
    Also avoiding the screenshot is pretty much impossible and certainly isn't the responsibility of the application.

  • How do you copy paste a thumbnail from one file to another in Mavericks

    I used to be able to do a copy/paste and duplicate in the thumbnails...how do I do now in Maverick?

    In the Pages and Numbers applications, the thumbnail view of my document no longer allows me to re-arrange, duplicate or otherwise edit the thumbnails. The fact that I can't right click on the thumbnails to manage the pages are one thing, but the fact that I can't even drag and drop the order of pages is unbelievable. Suggestions?

  • How can I prevent copy/pasting of text from my PDF?

    I'm having trouble creating PDF security that DOES NOT allow copying of text. It seems I follow the security steps yet still am able to copy/paste.

    Yes, I have figured that out and found I need a customized PDF viewer. It didn't occur to me to use a company that creates e-books, etc.  Thank you for your help today.

  • How can I copy/paste a page from one pages document into another pages document?

    I have read the directions in the manual, but when I go to the document where I want to put the page the paste function is greyed out.  I assume this has something to do with styles, but can't find what to do. 

    You got it.
    Paste is greyed when we try to paste a page from a WP document into the thumbnails area of a Layout one.
    It's active if we try to paste in the pages area.
    In the document's tool bar, there is an icon with a + symbol at top left.
    In WP documents it's named Sections, In Layout ones its named Pages.
    Yvan KOENIG (VALLAURIS, France) mercredi 26 octobre 2011 17:50:55
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How to restrict the copy & paste in string control?

    In my application user name & password string controls are there.After typing the username in string control it is copied and paste it in password string control .
    I like to restrict the string copy from one string control  & paste it into another string control ?
    How to do this?
    Kumar.
    Attachments:
    login.vi ‏11 KB

    These images illustrate anoth approach to inhibit the copying of text which is available in LV 8.2 (maybe 8.0)
    Ben
    Message Edited by Ben on 12-07-2006 10:12 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Edit_RT_Shortcut.JPG ‏60 KB
    Short_cut_Menu_edit.JPG ‏30 KB

  • How to get a SQL-String from a (Prepared)Statement?

    Hi,
    I have these three lines of code:
    PreparedStatement stmt = connection.prepareStatement("select * from mytable where username= ?");
    stmt.setString(1, "user");
    ResultSet rs = stmt.executeQuery();
    Now, I want to log all SQL-Statements with log4J.
    log.info(sqlstring);
    Now, I want for sqlstring something like "select * from mytable where username='user' ", i. e. the PreparedStatement-String with the parameters I set.
    Is there any possibility to get this string?
    I searched in class PreparedStatement, in class ResultSet, in class ResultSetMetaData, but without success.
    Can anybody help me?

    Use a JDBC-logging library. You can use Mimer JTrace available att http://developer.mimer.com (or http://developer.mimer.se/downloads/downloads_thank.tml?a=&id=36). It should work with any JDBC driver.
    /Fredrik

Maybe you are looking for