Static Column

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
DenisCGN
Posts: 3
Joined: Fri 10 May 2013 06:16

Static Column

Post by DenisCGN » Wed 12 Feb 2014 21:22

Hello,

I Need to create a CSV fiel and therefor I Need to create fixed columns that are not in my table.

How can I add those columns?

I Need a Column called CATEGORY that allways have to be 3 and EXERPT has to be empty.

Where do I put theses columns and how

Image

Thanks,
Denis

alexa

Re: Static Column

Post by alexa » Thu 13 Feb 2014 12:02

On the 'Selection' tab, under the 'Column' column, type the following:

(SELECT 3)

and in the 'Alias' column, type 'CATEGORY'.

Then, add another query field and type:

(SELECT '') and 'EXERPT' respectively.

Post Reply