pashadowops
Technical User
Hello all,
I have a question that I can't seem to find the answer to.
I have created a database for our online directory.
The database was built using MySQL 3.4x and because of server constraints we are connecting to the DB using ASP. The constraint being it's a Winblows box instead of Linux.
Now to the fun part I have written the queries out to make sure that all the search functions of the directory will work however, since this directory will have the capability to be searched by multiple fields, will I have to write a query for each and every search probability or is there a way to setup one or two queries and have the ASP page input the search parameter into the query then execute it?
Below I have given an sample of one of the queries I am using. Where it says 'input' is where I would like the ASP input form to insert the search criteria and then when the submit button is hit , Run the query:
mysql> Select company.company_name from company, catcomlnk where company.company_ID = catcomlnk.company_ID and catcomlnk.cat_ID = 'input' and county.county_ID = 'input' and keyword.kw_ID = 'input' order by company_name;
Can you imagine if I had to write a similar query for each and every search possibilty? HOLY COW!!!!! I understand that SQL offers something called parameter search or query, something to that effect. I haven't found anything in MySQL that resembles that. Is there?
If what I am asking can't be done with MySQL, what am I to do? This directory goes live online in less then a week. I know it's ambitious to take on something of this scale from scratch but that's the way I do things. Plus I've only been playing with MySQL for about 4 months. If you want an Idea of what the search criteria I will be working with, Please visit the site under construction at:
Thanks in advance for any help anyone can offer.
Man I hope it's something simple like my last question on the my.cnf file.
I have a question that I can't seem to find the answer to.
I have created a database for our online directory.
The database was built using MySQL 3.4x and because of server constraints we are connecting to the DB using ASP. The constraint being it's a Winblows box instead of Linux.
Now to the fun part I have written the queries out to make sure that all the search functions of the directory will work however, since this directory will have the capability to be searched by multiple fields, will I have to write a query for each and every search probability or is there a way to setup one or two queries and have the ASP page input the search parameter into the query then execute it?
Below I have given an sample of one of the queries I am using. Where it says 'input' is where I would like the ASP input form to insert the search criteria and then when the submit button is hit , Run the query:
mysql> Select company.company_name from company, catcomlnk where company.company_ID = catcomlnk.company_ID and catcomlnk.cat_ID = 'input' and county.county_ID = 'input' and keyword.kw_ID = 'input' order by company_name;
Can you imagine if I had to write a similar query for each and every search possibilty? HOLY COW!!!!! I understand that SQL offers something called parameter search or query, something to that effect. I haven't found anything in MySQL that resembles that. Is there?
If what I am asking can't be done with MySQL, what am I to do? This directory goes live online in less then a week. I know it's ambitious to take on something of this scale from scratch but that's the way I do things. Plus I've only been playing with MySQL for about 4 months. If you want an Idea of what the search criteria I will be working with, Please visit the site under construction at:
Thanks in advance for any help anyone can offer.
Man I hope it's something simple like my last question on the my.cnf file.