Hi
I am new to MYSQL and am trying to understand how to make queries... I am moving from Microsoft Access where it is GUI driven and easy!
I can make a simple single query using MYSQL Query Browser, say:
qry1: SELECT ID, Area FROM data GROUP BY Area
How can I store this as a query inside MYSQL, rather than having to code it each time?
In Microsoft Access I could enter a variable ($VARIABLE) and then pass by code to the query:
qry2: SELECT ID, $VARIABLE FROM data GROUP BY $VARIABLE
How can I store this as a query and then pass the variable from code?
In Microsoft Access I could base a query on the results of another query, so following example above:
qry3: SELECT qry1.Area, data.ID FROM qry1 INNER JOIN data ON qry1.Area = data.Area;
How can I store this as a query in MYSQL
Thanks for any help.
I am new to MYSQL and am trying to understand how to make queries... I am moving from Microsoft Access where it is GUI driven and easy!
I can make a simple single query using MYSQL Query Browser, say:
qry1: SELECT ID, Area FROM data GROUP BY Area
How can I store this as a query inside MYSQL, rather than having to code it each time?
In Microsoft Access I could enter a variable ($VARIABLE) and then pass by code to the query:
qry2: SELECT ID, $VARIABLE FROM data GROUP BY $VARIABLE
How can I store this as a query and then pass the variable from code?
In Microsoft Access I could base a query on the results of another query, so following example above:
qry3: SELECT qry1.Area, data.ID FROM qry1 INNER JOIN data ON qry1.Area = data.Area;
How can I store this as a query in MYSQL
Thanks for any help.