SQL Queries

Moderator: crythias

Locked
mpmnu
Znuny newbie
Posts: 21
Joined: 17 Dec 2013, 11:49
Znuny Version: 3.3.x

SQL Queries

Post by mpmnu »

Hello,

I try to use an SQL query to export all the Information of recently closed tickets. To prevent exporting those already exported, I added a boolean to the article DB which should be set as soon as an article is exported and then used to filter the export. Is there a way to do this inside of the SQL Box or do i need to use some other way of adressing the database?

Greets

mpmnu
Using OTRS ITSM 3.2.9 and KIX4OTRS 5.1.1 on Ubuntu 12.04 LTS with MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SQL Queries

Post by crythias »

For your protection, you cannot make changes to data via the SQL box (essentially, DESCRIBE and SELECT are your primary allowed verbs)
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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SQL Queries

Post by jojo »

you should not change the table structures provided.

The best woud be to cache or save the last ticket ID in your application
"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
Locked