how to enable eclipse generate select statement 如何在eclipse里面写sql DDL语句

见官方文档即可

Help - Eclipse Platform
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.datatools.common.doc.user%2Fdoc%2Fhtml%2Fasc1229700393698.html

Creating and Executing a SQL Query


Create a SQL file and run it against a given database instance.
 1. Create a Java project.  a. Select File > New > Project  from the main menu bar.  
b. Select Java Project and click Next. 
c. Enter a Project Name and click Finish. 

2. Create a SQL file and associate it with a Derby connection profile.  a. Select File > New > SQL File  from the main menu bar.  
b. In the Enter or Select Parent Folder box, select the Java project you just created. 
c. Enter the File Name. 
d. Associate this SQL file with the Apache Derby connection profile by indicating the Database Server Type, Connection Profile Name, and Database Name. 

3.  Click Finish. 
4. In SQL File Editor, enter the following SQL statement: 
 select * from SYS.SYSTABLES 

5.  Right-click in the editor and select Execute All. 
The query results appear in the SQL Results view. The left pane displays the execution history. For each statement, including stored procedures, that you run, you can create an Eclipse launch configuration. This allows you to quickly retest the execution using slightly different values and settings. You can rename or delete launch configurations as needed.




Parent topic: Data Tools Platform Tutorial Overview

Previous topic: Running a Stored Procedure

当然,自己也可以先创建好,然后在

  1. Associate this SQL file with the Apache Derby connection profile by indicating the Database Server Type, Connection Profile Name, and Database Name.
这一步的时候,直接选择即可



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不止鱼

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值