Quick Tip: Shortcut a query in Oracle SQL Developer or SQL Server Management Studio
Photo credit: Pixies via Pixabay

Quick Tip: Shortcut a query in Oracle SQL Developer or SQL Server Management Studio

After going back and forth copy-and-pasting or trying to remember queries for my current project, I decided wanted to see if there was a better way. Good news: There is!

This was one of those topics that was a little difficult to nail down as far as wording for a Google search goes, so I'm jotting the steps down here to hopefully save others (and future me) some time. For those who like to know the source, I eventually found this info on a Stack Overflow post for Oracle SQL Developer and on c-sharpcorner for SQL Server.

Five steps to quicker querying in Oracle SQL Developer:

  1. Open Oracle SQL Developer.
  2. In the top toolbar, select Tools > Preferences > Database > SQL Editor Code Templates.
  3. Click Add Template. When the blue row appears in the list, type a shortcut in the first column and the query in the second column.
  4. Click OK.
  5. Now when you want to quick-paste your query in the editor, you can just type the shortcut!
Screenshot of steps to save a query shortcut in Oracle SQL Developer

Five steps to quicker querying in Oracle SQL Developer:

* Note: This one isn't as much fun because you can't choose your own shortcut (there is a set of predetermined ones to choose from) and it doesn't "paste" the query to the editor for you to see and manually manipulate.

  1. Open SQL Server Management Studio.
  2. Go to Tools > Options > Environment > Keyboards > Query Shortcuts.
  3. Choose a shortcut and write your query next to it.
  4. To run your query, select New Query and type your shortcut to execute the associated query.
Screenshot of creating a query shortcut in SQL Server Management Studio

Got any additional quick tips for Oracle SQL Developer or SQL Server Management Studio? Share them in the comments!

要查看或添加评论,请登录

Sondra Coffin的更多文章

  • Welcome to the Wonderful World of HTML

    Welcome to the Wonderful World of HTML

    HTML is a computing language that is used to “tell” computers how a web page should be structured. It is a fundamental…

  • Use the Visual Studio Code "Prophet Debugger" extension to connect to a Salesforce Commerce Cloud sandbox

    Use the Visual Studio Code "Prophet Debugger" extension to connect to a Salesforce Commerce Cloud sandbox

    I just finished working my way through a Medium article by Manu Saini regarding connecting VSCode (Visual Studio Code)…

    1 条评论
  • Pug.js Basics

    Pug.js Basics

    Pug (formerly known as Jade) is a template engine that allows you to dynamically manipulate the HTML and CSS that are…

    6 条评论
  • 10 Minute Vue App

    10 Minute Vue App

    The Intro Vue is a front-end JavaScript framework that packs a lot of the same features of other popular frameworks…

  • Getting Started with Asynchronous JavaScript

    Getting Started with Asynchronous JavaScript

    When I'm trying to learn something new and am finding trouble wrapping my head around the overarching concept, my first…

  • Git Refresher

    Git Refresher

    * * * PLEASE NOTE * * * ?As of June 2020, GitHub now refers to the "master" branch as the "main" branch by default…

  • My Journey into SOAP

    My Journey into SOAP

    Introduction This article embodies my understanding of SOAP-- which is admittedly simplified in some areas-- in the…

    2 条评论
  • 3 Quick Tips for Absolute Beginner Coders

    3 Quick Tips for Absolute Beginner Coders

    I've gotten a lot of messages from people across the world asking about my journey into code, so I wanted to take a few…

    2 条评论
  • Why You Should Hire a Candidate with Teaching Experience

    Why You Should Hire a Candidate with Teaching Experience

    Having been an educator for several years, I know firsthand how valuable teachers' knowledge, skills, and work ethic…

    6 条评论
  • A Teacher's To-Do List

    A Teacher's To-Do List

    I recently wrote an article for staffing managers on Why You Should Hire a Candidate with Teaching Experience, and…

    2 条评论

社区洞察

其他会员也浏览了