Search found 5 matches
- 07.11.2006, 08:12
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Need some help formatting queries.
- Replies: 9
- Views: 1681
Amazingly I got it all working lol, I started noticing some odd behaviors from some of my jedi components and thought it might be something b0rked within my delphi setup itself. I removed all traces of delphi (except my sources of course, and my cvs) and reinstalled. Everything worked marvelously an...
- 03.11.2006, 22:57
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Need some help formatting queries.
- Replies: 9
- Views: 1681
I tried using stuff like:
ZQuery1.SQL.Text := 'SELECT COUNT(*) FROM `users` WHERE ostatus = "Offline";';
ZQuery1.SQL.Text := 'SELECT COUNT(*) FROM `users` WHERE ostatus = "Offline";';
Code: Select all
And the using .RecordCount but I always get a return value of 1 from RecordCount, without the WHERE it returns the correct number of rows.
- 03.11.2006, 08:28
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Need some help formatting queries.
- Replies: 9
- Views: 1681
I'll play around with all of that thanks, however I'm having some difficulty getting the return value, it turns out whatever I was doing was going to return 1 no matter what lol. I don't even remember what I had, I had so much tried and commented out I just started the test project over. :oops: I'll...
- 03.11.2006, 06:29
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Need some help formatting queries.
- Replies: 9
- Views: 1681
- 03.11.2006, 01:56
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Need some help formatting queries.
- Replies: 9
- Views: 1681
Need some help formatting queries.
Hi, I'm pretty new to both delphi and MySQL so if this is something retarded ... well sorry. If I run: SELECT COUNT(*) FROM `users` WHERE ostatus = "Offline"; in mysql query browser it works perfectly, but if I try to use: ZQuery1.SQL.Text := 'SELECT COUNT(*) FROM `users` WHERE ostatus = (...