rss
Rechercher : dans
Par : Pertinence Date Nom d'utilisateur
Statut : Non résolu

SQLPlus / UNIX (C'est un DEFI) !!!!

Posté par mike24111, le jeudi 7 mars 2002 à 09:52:21
Bonjour,
Je script en SQLPlus et je veux faire un TTITLE ou un PROMPT avec des le contenu de variable UNIX :
ex : PROMPT le nom du serveur est : !hostname
Bon le !hostname etant pour avoir le nom du serveur ca marche en dehors du PROMPT mais dans le PROMPT je ne trouve pas la juste syntaxe !

MERCI d'avance mais bon ca m'etonnerais que vous trouveriez ! ;-)
Répondre à mike24111  Signaler ce message aux modérateurs Aller au dernier message

1


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
 Samir, le vendredi 8 mars 2002 à 10:26:47
si ca peut t´aider:


------------------------------------------------------------­----------------PROMPT
Purpose
Sends the specified message or a blank line to the user's screen.

Syntax

PROMPT [text]

Terms and Clauses

Refer to the following for a description of the term or clause:


text

Represents the text of the message you wish to display. If you omit text, PROMPT displays a blank line on the user's screen.


Usage Notes

You can use this command in command files to give information to the user.

Example

The following example shows the use of PROMPT in conjunction with ACCEPT in a command file called ASKFORDEPT. ASKFORDEPT contains the following SQL*Plus and SQL commands:


PROMPT
PROMPT Please enter a valid department
PROMPT For example: 10, 20, 30, 40
ACCEPT NEWDEPT NUMBER PROMPT 'DEPT:> '
SELECT DNAME FROM DEPT
WHERE DEPTNO = &NEWDEPT
Assume you run the file using START or @:


SQL> @ASKFORDEPT
SQL*Plus displays the following prompts:


Please enter a valid department
For example: 10, 20, 30, 40
DEPT:>
You can enter a department number at the prompt DEPT:>. By default, SQL*Plus lists the line containing &NEWDEPT before and after substitution, and then displays the department name corresponding to the number entered at the DEPT:> prompt.
------------------------------------------------------------­----------------
Répondre à Samir
Logiciels pertinents trouvés dans les téléchargements
Télécharger WLM Universal Patcher++ 1.0.1WLM Universal Patcher++ - WLM Universal Patcher est un patch universel pour MSN (Windows Live Messenger) permettant : d'ouvrir plusieurs sessions...Catégorie: Messagerie instantanée
Licence: Freeware/gratuit
Télécharger Unison 2.24.6Unison - Unison est un logiciel de synchronisation de répertoires. Il est capable de travailler de manière bidirectionnelle, c'est...Catégorie: Gestion de fichiers
Licence: Open Source
Télécharger Revo Uninstaller 1.71Revo Uninstaller - Revo Uninstaller est logiciel de nettoyage en profondeur avec diverses fonctionnalitées : Nettoyage, désinstalleur de...Catégorie: Nettoyage
Licence: Freeware/gratuit
Télécharger Universal Extractor 1.5Universal Extractor - Universal Extractor est un outil dont le but est de pouvoir extraire n'importe quel fichier de n'importe quelle archive,...Catégorie: Compression/Décompression
Licence: Freeware/gratuit
Plus de logiciels gratuits sur « SQLPlus / UNIX (C'est un DEFI) !!!! »