[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Trying to substituted temp tables for actual tables?

Asked by pointeman in MySQL Server

I've been using this code (without the temp table code) successfully. Now I recieve an MySQL Query error: "Unknown column 'd.DomainID' in 'field list'

Q. Can I eliminate the actual tables and use temp tables instead?

CREATE TEMPORARY TABLE Domains (DomainID int, Domain varchar(50)) TYPE=HEAP;
CREATE TEMPORARY TABLE Computers (ComputerID int, DomainID int, Name varchar(50)) TYPE=HEAP;
Insert into Domains (Domain) Select Distinct Domain from Logs ;
Insert Into Computers(DomainID, Name) Select d.DomainID, L.Computer From Logs L ;
Join Domains d On L.Domain = d.Domain

 MySqlDataAdapter da = new MySqlDataAdapter(sql, cn);
 cn.Open();
 da.SelectCommand.ExecuteNonQuery();
 da.Dispose();
 da = new MySqlDataAdapter("Select Distinct Domain, DomainID From Domains", cn);
 da.Fill(ds, "Domains");
[+][-]11/03/09 09:25 AM, ID: 25731283Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 10:10 AM, ID: 25731727Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 12:17 PM, ID: 25743467Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/09/09 09:34 AM, ID: 25778069Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/09/09 10:08 AM, ID: 25778396Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/09/09 11:16 AM, ID: 25779009Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/09/09 10:30 PM, ID: 25782877Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/10/09 02:21 PM, ID: 25790536Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/10/09 09:12 PM, ID: 25792472Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/11/09 06:47 AM, ID: 25795467Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_EXPERT_20070906