I got problem with count
-
anwar5218
I got problem with count
I use this query statement in myQuery component.
"select Id, count(Id) as TotItem from atable"
The result is, If atable contains record, TotItems become LargeInt,
but if atable contains no record, totitems become integer,
Please help.
Thanks
"select Id, count(Id) as TotItem from atable"
The result is, If atable contains record, TotItems become LargeInt,
but if atable contains no record, totitems become integer,
Please help.
Thanks
How, exactly?
Hi Ikar, can you please tell me what the SQL would look like to convert an Integer into a BigInt? From what I can tell, I can't use cast() to do this.
Thanks.
Thanks.
-
Tom
I do have the same problem. Depending on the MySQL Server version that is used, I sometimes get the error that integer was found but a LargeInt was required.
Since I did not find any answer in an MySQL forum, I ask it here again, so maybe someone has a workaround.
I don't think this problem is only due to the MySQL server version. When I used in former times the Zeos Library, this error did not occur.
Well, maybe someone has a tip to deal this problem.
Since I did not find any answer in an MySQL forum, I ask it here again, so maybe someone has a workaround.
I don't think this problem is only due to the MySQL server version. When I used in former times the Zeos Library, this error did not occur.
Well, maybe someone has a tip to deal this problem.
-
Tom
-
Tom
-
Tom
That was my first idea too, but Delphi does not allow to cast a TStringField with AsInteger.Ikar wrote:- Convert it to char. In your Delphi application use TField.AsInteger.
Well, I have to, because I use Calculated fields in Delphi. Once you add a calculted field, you can only access the data fields if you add them in the fieldseditor.Ikar wrote:- Do not create fields at design-time (preferable).
I think I need to work with the char. But this is very unlucky.