<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-84  評論-56  文章-0  trackbacks-0

    If a project you are working on requires referring to an SQL database, you can, actually, use one of the numerous SQL clients, or type commands in the command line - and regularly switch between frames. Now IntelliJ IDEA suggests a better choice. Since version 8.0, you have a dedicated Database tool window at your disposal, which allows you to work with the data sources without leaving IntelliJ IDEA.

    Let’s have a 10,000-feet look at IntelliJ IDEA’s database support in action.

    First, configuring a data source is now just a snap – press Insert, specify your data source parameters and make sure you are connected. By the way, you can use the old good External Tools dialog to create start and stop scripts for a database server, if needed.

     

     

     

     

     

     

     

    You can now create SQL scripts, enjoying the famous IntelliJ IDEA’s coding assistance, which includes syntax and error highlighting, code completion for keywords, table and column names, and more.

     

     

     

     

     

     

     

     

    From the Database tool window you can launch JDBC console for a data source of your choice. It is very easy – just select the desired data source, and click the run button on the toolbar. Console adds a tab to the Run tool window. Here you are: the upper panes are intended for SQL commands, the lower pane displays messages.

    Let’s start typing SQL commands. As you see, syntax highlighting and code completion are also available here:

     

     

     

     

     

    Should I also mention that you can find here the handy editor shortcuts that have already become a habit for the IntelliJ IDEA users? Among them, pay attention to “Go to Declaration”. If you place the cursor at the table name, and click Ctrl+B, the corresponding table will be highlighted in the data source.

    The console can contain as many commands as required. You can run them all at once (Ctrl+Enter), or execute one by one, in the order you consider appropriate (Ctrl+Shift+Enter), and see results in the lower pane:

     

     

     

     

     

     

     

    Suppose you want to retrieve data from the various tables. Instead of repeatedly entering the same command with the changing parameters, use variables, which are just strings enclosed in $, #, or ?{}. When such a string is encountered in a command you type in the left pane, it is added to the list of parameters in the right pane, where you can enter the desired values:

     

     

     

     

     

     

     

     

    What happens if you use wrong syntax? An error is marked same way as in the editor, with the red underline, and diagnostics at the tooltip. If you want to change SQL dialect, just click the properties button in the console toolbar, and select one of the supported dialects.

    posted on 2008-11-13 00:14 憶風 閱讀(565) 評論(0)  編輯  收藏 所屬分類: IDE
    主站蜘蛛池模板: 亚洲熟妇无码八V在线播放| 亚洲精品无码成人片在线观看| 亚洲av无码潮喷在线观看| 亚洲av综合日韩| 免费大香伊蕉在人线国产| 亚洲精品无码国产片| 日本视频免费在线| 国产亚洲精品精品精品| 日韩亚洲国产二区| 成年网在线观看免费观看网址 | 无码精品人妻一区二区三区免费看| 国产亚洲精品AA片在线观看不加载| 人禽伦免费交视频播放| 亚洲日本乱码在线观看| 免费无遮挡无码永久视频| 亚洲国产精品成人综合久久久 | 亚洲AV无码成人网站久久精品大 | 久久亚洲精品国产精品| 1000部拍拍拍18免费网站| 亚洲一区二区三区久久| 国产又黄又爽又猛的免费视频播放 | 久久丫精品国产亚洲av| 日韩亚洲国产高清免费视频| 亚洲熟女精品中文字幕| 国产一区二区三区在线免费| yellow视频免费在线观看| 亚洲成人精品久久| 免费毛片在线看片免费丝瓜视频| 国产成人人综合亚洲欧美丁香花| 久久久久无码专区亚洲av| 未满十八18禁止免费无码网站| 亚洲午夜在线一区| 亚洲国产成人久久综合一区77| A级毛片高清免费视频在线播放| 久久精品国产亚洲αv忘忧草 | 午夜爱爱免费视频| 最新国产乱人伦偷精品免费网站| 亚洲伊人久久大香线蕉| 亚洲色偷偷狠狠综合网| 99国产精品永久免费视频| 乱人伦中文视频在线观看免费|