Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MOD() vs % (sql-syntax)
Message
De
03/01/2005 10:46:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
MOD() vs % (sql-syntax)
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00973817
Message ID:
00973817
Vues:
56
Hi all!

I've encountered a strange behaviour when using MODULO-function.

VFP8:
MOD(10-12,12) = 10

SQL:
(10-12) % 12 = -2

I need to use Modulo in my sql-syntax - what have I done wrong???

Thanks for help!
robert.oh.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform