Visualizzazione dei risultati da 1 a 7 su 7
  1. #1

    create database con java

    Da quanto ho capito leggendo vari post sul forum della sun, contraditemi se é vero il contrario, non e“ possibile creare senza alcuna connessione preesistente un nuovo database sql tramite jdbc. Ora, qualcuno potrebbe indicarmi se e“possibile lanciare una query da DOS oppure se fosse possibile creare uno script che poi verrį lanciato dal mio programma java?
    Walk fast, chew slowly.
    "We used students as subjects because rats are expensive and you get too attached to them"

  2. #2
    Utente di HTML.it L'avatar di floyd
    Registrato dal
    Apr 2001
    Messaggi
    3,837
    con oracle apri sqlplus e crei il db

    con mysql apri mysqlc (se ricordo bene)

    per farlo con java devi esare il metodo exec di Runtime

  3. #3
    ma il comando dos che dovrei far eseguire a exec quale sarebbe?
    Walk fast, chew slowly.
    "We used students as subjects because rats are expensive and you get too attached to them"

  4. #4
    Utente di HTML.it L'avatar di floyd
    Registrato dal
    Apr 2001
    Messaggi
    3,837
    fai eseguire cmd che invoca un file batch che contiene uno script che esegue mysqlc e crea un database

  5. #5
    ottimo, mi sai dire anche cosa utilizza db2 per creare il db?
    Walk fast, chew slowly.
    "We used students as subjects because rats are expensive and you get too attached to them"

  6. #6

  7. #7
    merci baquetts, per oggi non rompo piś
    Walk fast, chew slowly.
    "We used students as subjects because rats are expensive and you get too attached to them"

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.