question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running SQL script as part of another... (including by using @ char)

See original GitHub issue

Hi,

notice feature in sqlplus and sqldeveloper:

select * from foo limit 1;
@nameOfScript.sql
drop database bar;

will “include” nameOfScript.sql into that listing… QUESTION - is dbeaver have any similar feature?

And, do anybody want to have it?

Docs here

Best regards.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Aug 5, 2017

In 4.1.2 DBeaver will support following syntax:

@include file-name
@include "file-name"

file-name is relative or absolute file path.

See https://github.com/serge-rider/dbeaver/wiki/Client-side-scripting for details.

If other database-specific syntax is needed - please create separate feature requests.

1reaction
serge-ridercommented, Oct 7, 2016

These issues are related (both requires DBeaver to analyze script content and extract meta-information) but still different - and will be resolved separately. Will set 3.8 milestone although it is not final.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL Substring function overview - SQLShack
Using the SQL Server SUBSTRING function, the input values are truncated using CHARINDEX or PATINDEX function to get the date-time value.
Read more >
EXECUTE (Transact-SQL) - SQL Server - Microsoft Learn
In this article. Syntax; Arguments; Remarks; Using EXECUTE with Stored Procedures; Using EXECUTE with a Character String; Context Switching ...
Read more >
Run SQL Scripts - unreadable characters - IBM
Using Run SQL Scripts to display a character column results in unreadable characters that look like hexadecimal.
Read more >
SQL SELECT WHERE field contains words - Stack Overflow
Split @str by @sep -- Returns all parts CREATE FUNCTION [dbo].[fnSplit] ( @sep CHAR(1), @str VARCHAR(512) ) RETURNS TABLE AS RETURN ( WITH...
Read more >
5 Using Scripts in SQL*Plus - Oracle Help Center
In SQL*Plus command-line, the use of an external editor in combination with the @, @@ or START commands is an effective method of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found