Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime Conversion
Message
 
 
À
12/02/2019 00:10:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server CE
Application:
Desktop
Divers
Thread ID:
01666300
Message ID:
01666302
Vues:
43
Why not use DATEDIFF() ?

>Sir, while using SQLSERVER 2008, I have these codes
>
>
>
>UPDATE bin1 SET delay_int =
>(select replace(replace(replace(CONVERT(VARCHAR(19), DATE, 120),'-',''),' ',''),':','')as int)
>-(select max(replace(replace(replace(CONVERT(VARCHAR(19), DATE, 120),'-',''),' ',''),':',''))as int
>   FROM bin1 j1
>  WHERE j1.date < bin1.date)
>
>
>but is showing this error message
>
>
>
>and here is table structure
>
>
>
>
>Actually I am converting date stamp to INT then subtract.
>
>Please help me how to make query workable?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform