PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WD - Como testar um valor nulo no servidor SQL?
WD - Como testar um valor nulo no servidor SQL?
Started by BOLLER ADRIANO, Jun., 28 2016 10:44 PM - No answer
Connect yourself…
BOLLER ADRIANO
#1
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on June, 28 2016 - 10:44 PM
//Example
SQL_SELECT est
chaîne
=
"SELECT id, value FROM tableNull"
sqlData est une
Source de Données
Nouvelle_connexion est une Connexion
// Paramètres de la connexion
Nouvelle_connexion
..
Provider
=
hOledbSQLServer
Nouvelle_connexion
..
Utilisateur
=
"user"
Nouvelle_connexion
..
MotDePasse
=
"MDP"
Nouvelle_connexion
..
Serveur
=
"VENUS"
Nouvelle_connexion
..
BaseDeDonnées
=
"446073"
Nouvelle_connexion
..
Accès
=
hOLectureEcriture
// Ouverture de la connexion
HOuvreConnexion
(
Nouvelle_connexion
)
HExécuteRequêteSQL
(
sqlData
,
Nouvelle_connexion
,
hRequêteSansCorrection
,
SQL_SELECT
)
POUR
TOUT
sqlData
SI
sqlData.value
..
Null
=
Vrai
ALORS
Info
(
sqlData.id
)
FIN
FIN
CAS ERREUR
:
Erreur
(
HErreurInfo
(
)
)
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text