Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Export rows as sql?: msg#00009

db.squirrel-sql.users

Subject: Re: Export rows as sql?

On 9/10/07, Patrick Niemeyer <pat@xxxxxxx> wrote:
> First - thanks for the fantastic tool. I use it every day.
>
> I was just wondering - is there a way to export selected rows or the
> result of a query as sql insert statements?
> I see that I can dump a whole table to sql using the create data script.

In the SQL editor, type the query that limits the rows. Then place
your cursor in the query, and type Ctrl-T to access the tools popup.
Next type "sql2ins" - without the quotes : this stands for
sql-to-insert statements. The insert statement should appear at the
end of the editor.

> If not perhaps I can try to add this feature and submit it.

Perhaps another approach could be to set a "Contents Tab SQL filter"
on the table, then right-click to "Create Data Script" could take into
account the filter criteria. It doesn't currently -
CreateDataScriptCommand.java is the file, if you have time and want to
look. The IObjectTreeApi doesn't provide a good way to get access to
the ContentTab which contains the method getSQLFilterClauses - it
needs to support getting a particular type of tab - the "Contents"
tab; right now it only supports getting a tab by title - not by
purpose. If you would like to study the code a little and suggest an
improvement we would be happy to listen.

Rob

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation