Announcement

Collapse
No announcement yet.

Show im SELECT

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Show im SELECT

    Hey leute ich habe folgendes Problem, ich würde ger SHOW tables in einem SELECt statement aufrufen
    Beispiel 1:
    SELECT (SHOW tables) FROM DUAL
    Beispiel 2:
    SELECT 1 FROM (SHOW tables LIKE '%asda%')
    Beispiel 3:
    SELECT 1,2 FROM DUAL LIMIT 1,1 SHOW tables

    Ich weiß nur nicht wie ich das so ansprehcne soll SHOW is ja mehr nen Client befehl der einzelnd genutzt wird ich will aber oberrige querys so über ein php skript an den myslq server schicken

  • #2
    Hallo,

    das wird wohl einfacher werden, das information_schema abzufragen.

    z.B. Bsp.1:
    [highlight=sql]
    SELECT TABLE_NAME
    FROM information_schema.TABLES
    WHERE TABLE_TYPE = 'BASE TABLE'
    and TABLE_SCHEMA = DATABASE()
    [/highlight]

    Gruß Falk
    Wenn du denkst du hast alle Bugs gefunden, dann ist das ein Bug in deiner Denksoftware.

    Quellcode ohne ein Mindestmaß an Formatierung sehe ich mir nicht an! Ich leiste keinen Privatsupport per Mail oder PN!

    Comment

    Working...
    X