Voici un exemple avec une commande FETCH.
Sans un tableau, pour traiter le résultat d'une requête de plusieurs lignes, il est nécessaire d'utiliser un curseur et la commande FETCH.
Without an array, to process a query result consisting of multiple rows, it is required to use a cursor and the FETCH command.
Quand l'application cliente utilise le protocole des « requêtes étendues » pour exécuter la commande FETCH, le message Bind du protocole spécifie si les données sont à récupérer au format texte ou binaire.
When the client application uses the "extended query" protocol to issue a FETCH command, the Bind protocol message specifies whether data is to be retrieved in text or binary format.
MOVE fonctionne exactement comme la commande FETCH sauf qu'elle ne fait que repositionner le curseur et ne renvoie donc pas les lignes du déplacement.
MOVE works exactly like the FETCH command, except it only repositions the cursor and does not return the row moved to.
MOVE fonctionne exactement comme la commande FETCH à la différence que MOVE ne fait que positionner le curseur et ne retourne aucune ligne.
MOVE works exactly like the FETCH command, except it only positions the cursor and does not return rows.
Bien qu'une structure soit utilisée dans la commande FETCH, les noms d'attributs dans la clause SELECT sont spécifiés un par un.
Although a structure is used in the FETCH command, the attribute names in the SELECT clause are specified one by one.
Note Lorsque le client utilise le protocole de « requête étendue » pour exécuter une commande FETCH, le message du protocole Bind indique le format de récupération de la donnée.
Note: When the client application uses the "extended query" protocol to issue a FETCH command, the Bind protocol message specifies whether data is to be retrieved in text or binary format.
Les paramètres de la commande MOVE sont identiques à ceux de la commande FETCH. FETCH(7) contient les détails de syntaxe et d'utilisation.
The parameters for the MOVE command are identical to those of the FETCH command; refer to FETCH for details on syntax and usage.
EXEC SQL DECLARE Pour plus de détails à propos de la déclaration du curseur, voyez DECLARE, et voyez FETCH(7) pour le détail de la commande FETCH
For more details about declaration of the cursor, see DECLARE, and see FETCH for FETCH command details.
Il faut noter que la commande fetch tire les données dans votre dépôt local mais sous sa propre branche - elle ne les fusionne pas automatiquement avec aucun de vos travaux ni ne modifie votre copie de travail.
It's important to note that the fetch command pulls the data to your local repository - it doesn't automatically merge it with any of your work or modify what you're currently working on.
Enfin, pour récupérer les photos d'un album précédemment chargées sur le site de MyPixmania, il existe la commande fetch.
Finally, to fetch the pictures of a previously uploaded album, you can use the fetch command.
Dans la syntaxe utilisant count, la variable count peut être toute expression renvoyant un entier (contrairement à la commande FETCH, qui n'autorise qu'une constante entière).
In the forms using a count, the count can be any integer-valued expression (unlike the SQL FETCH command, which only allows an integer constant).
Si un curseur ouvert précédemment est affecté à une commande FETCH à l'intérieur d'un point de sauvegarde annulé un peu plus tard, la position du curseur reste à la position que FETCH lui a donné (c'est-à-dire que FETCH n'est pas annulé).
If a previously opened cursor is affected by a FETCH or MOVE command inside a savepoint that is later rolled back, the cursor remains at the position that FETCH left it pointing to (that is, the cursor motion caused by FETCH is not rolled back).