FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Nee a hint : enumerate tables from mySQL
Nee a hint : enumerate tables from mySQL
Débuté par stefan.kern, 19 juil. 2018 20:37 - 5 réponses
Connectez-vous…
stefan.kern
#1
Posté le 19 juillet 2018 - 20:37
Hi Forum,
I am trying to create something like hmodifystructure() myself to use it for mySQL.
No I wonder, wheather I can enumerate the physical files and their items on the Server.
Am I Right, that Hlistfile() lists the files of the Analysis?
Thanks for help.
Best Regards
Stefan.
Signaler
0
0
Fabrice Harari
#2
Posté le 20 juillet 2018 - 13:33
Hi Stefan
yes it does and you can then use hListItem
Another way of doing what you want is to use the SQL script generated by the analysis at each generation. That script is for CREATING the tables only, but you can massage it to do alter tables instead (I knew of one developer who coded that way to make a module for postgres)
Best regards
Signaler
0
0
stefan.kern
#3
Posté le 21 juillet 2018 - 00:48
Hi Fabrice,
thanks for your answer.
So, hlistfile() and hlistitem() read the Analysis, not he physical files, correct?
Does anyone has an idea how to list the phyical files?
Thanks and have a good night
Stefan.
Signaler
0
0
Fabrice Harari
#4
Posté le 21 juillet 2018 - 13:20
Hi Stefan,
yes, they both work against the analysis... For physical files, use flistfile or, in the case of an external SQL DB, use the SQL command available with that specific DB.
Best regards
Signaler
0
0
Paulo Oliveira
#5
Posté le 23 juillet 2018 - 10:52
For the phyical files you must use the MYSQL views.
I don't know MYSQL but in other db engines you can use this:
select * from information_schema.tables
select * from information_schema.columns
Signaler
0
0
stefan.kern
#6
Posté le 23 juillet 2018 - 18:43
Hi Fabrice and Paulo,
thanks a lot, thats what I needed
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte