You can use simple user defined variables in MySQL (command line). Expressions involving variables are evaluated for each row of a query result, a property that you can use to provide a column of row numbers in the output. It's a simple procedure:
set @var_name := whatever_you_want
Tax
set @vat := 1/100*119;
example: the price of a product is 45.50 USD excl. VAT. The VAT is 19%. You want to know the total price, the query is
select 45.50 * @vat;
output: 54.14
set @exvat := 1/119*100;
example: the total price of a product is 66. USD. The VAT is 19%. You want to know the price without the VAT, the query is
select 66 * @exvat;
output: 55.46
Numbered results
set @n = 0;
select @n := @n+1 as no, col1 from table1 where col1 like '%this%';
All records in the output of your query are numbered now. Nice!
Make your own user defined variable and let me know what you've achieved :-)
More information: http://dev.mysql.com/doc/refman/5.0/en/user-variables.html