SQL BOX

Moderator: crythias

Locked
naive
Znuny newbie
Posts: 9
Joined: 06 Jul 2012, 11:16
Znuny Version: 3.0.11

SQL BOX

Post by naive »

Hello
I would like to make the SQL query a data BOX.
However, he is always out syntax error - someone can give me a hint how I make a simple query on the SQL box.
Second, a specific query with specific search results such as customer or otherwise.

Thank you
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SQL BOX

Post by jojo »

Hi,

if you have no understanding of correct SQL syntax you should not use this frontend as you can easily loose all your data!

For syntax and so on you should read the mysql documentation and you also need some understanding of the OTRS database layout
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SQL BOX

Post by crythias »

simple query in sql box:
select 1

select * from article_type

hint: do not use semicolons.
hint2: remove the limit for DESCRIBE
hint3: if you want labels, add them with union:
select 'id' UNION select id from article_type
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked