How to edit an existing query in crystal report

2019-04-06 03:49发布

i just can see the SQL query at "Database"->"Show SQL Query". How do I edit it in Crystal Report?

5条回答
Summer. ? 凉城
2楼-- · 2019-04-06 04:26

Firstly I think you need to provide what version of CR you are using.

Secondly, to the best of my knowledge in Version CR13 using VS2010, you CANNOT hand edit SQL query like it we could in older version of CR.

Only way to change it is to update the links/joins on the tables in the Database Expert and Verify Database. These joins will then reflect when you click "Show SQL query".

Thirdly, there is a way you can control the query yourself, using "SQL Command". The steps to do this is mentioned in the other solution.

查看更多
Summer. ? 凉城
3楼-- · 2019-04-06 04:30

First Right Click on Database Fields > Set Datasource Location > Select View which you want to replace with another.

查看更多
成全新的幸福
4楼-- · 2019-04-06 04:33

You are looking for Edit Command within the Database Expert ... see the screenshot below.

enter image description here

查看更多
对你真心纯属浪费
5楼-- · 2019-04-06 04:41
  1. Go to Database Fields >> Database Expert
  2. Select all the tables required for the report (Selected Tables section)
  3. Go to the tab: Links
  4. Drag and create all the links required to connect the tables links.
  5. Then you can right click on the link and select Link Options Here you can change your joins and your final SQL query will change accordingly.
查看更多
在下西门庆
6楼-- · 2019-04-06 04:43

For Crystal Reports 14.1.x, use Report (in menu at the top) ==> Selection Formulas ==> Record

查看更多
登录 后发表回答