MySQL Forums
Forum List  »  MySQL for Excel

Re: Variables
Posted by: Peter Riggs
Date: November 08, 2013 03:08AM

Hi

Thanks for answering. I'm using Excel 2010, and connecting to the database via ODBC. Within Excel I am using the data connection wizard to create the links between Excel and the database.

What I have is a query that has a to and a from date field that is embedded in 8 times. What I want to avaoid is typing in these dates 8 times within the query and then when I change the date range, overwriting them 8 times. The ability to use something like
set @from_date ='2012-12-01',
@to_date ='2013-01-01';
would be so helpful. Interestingly, this does work within MySQL Workbench, so any ideas round this would be greatfully received.

In an even more ideal world, I would like not to have to open the query each time I want to amend it, and have the query reference 2 dates within 2 cells on the spreadsheet.

Anyway, thanks for your response



Edited 1 time(s). Last edit at 11/08/2013 03:15AM by Peter Riggs.

Options: ReplyQuote


Subject
Views
Written By
Posted
2147
November 04, 2013 03:25AM
1141
November 07, 2013 12:43PM
Re: Variables
1106
November 08, 2013 03:08AM
1063
November 12, 2013 10:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.