Mike.Griffin:We pass whatever is in those < > brackets straight through to the database, just get the syntax right in MySQL and plug it in there.
I had tried the < > brackets but they didn't work either. MySql is very tricky to get right. I did finally come up with a solution that did incorporate the brackets.
Code:
public static InquiryCollection FetchAll()
{
InquiryCollection inqColl = new InquiryCollection();
//
inqColl.Query.Select(inqColl.Query.InquiryID,
inqColl.Query.InquiryDate, inqColl.Query.FirstName,
inqColl.Query.LastName
, "<CONCAT(DATE(`InquiryDate`),_latin1' - ',`FirstName`,_latin1' ',`LastName`) AS NameWithDate>");
inqColl.Query.Load();
return inqColl;
}
The result is: 2007-08-14 - Joe Smith
Thanks.
King Wilder
http://www.kingwilder.com