Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2005

Tip: Looking for answers? Try searching our database.

mysql joins not always working in c#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
oscar - 10 Feb 2005 20:15 GMT
i'm making a mysql call from c# to a mysql database for a windows
application.  when i try to use the join command it works fine until the
column being joined gets to a null character and then the rest of that column
becomes null.  my statement is:

"select customers.name, customers.firstname, customers.customerid,  
customers.contact, customers.memorec, extinfo.info, memos.memo from customers
left join extinfo on customers.rec=extinfo.rec left join memos ON
customers.memorec=memos.rec  where customers.rec=extinfo.linkrec and
extinfo.identifier=1 and extinfo.primarytype=2 and customers.inactive=0 order
by customers.name asc"

the info column from extinfo never has a problem, but as soon as a memos.rec
= null or 0 then the rest of the memo field becomes null.  i have tried this
same call in mysql and it works fine, but when i transfer it over to C# it
doesn't work right.  any body know why?  if i do a right join all the memos
show up with their customers, but i need to be able to get all the customers
and memos for the ones that have them.

thanx in advance
Carl Daniel [VC++ MVP] - 10 Feb 2005 20:46 GMT
> i'm making a mysql call from c# to a mysql database for a windows

And this has what to do with C++ programming?

You should post this on a general SQL programming newsgroup or something
specific to MySQL.

-cd
oscar - 10 Feb 2005 21:33 GMT
my bad, didn't realize i was in the .vc forum. i'm posting it in the
language because it is not a mysql issue.  it's an issue with the way c#
seems to read the info.

> > i'm making a mysql call from c# to a mysql database for a windows
>
[quoted text clipped - 4 lines]
>
> -cd

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.