Visualizzazione dei risultati da 1 a 3 su 3

Discussione: [VB] Mysql_query

  1. #1

    [VB] Mysql_query

    Riesco a connettermi ma ma non riesco a fare una select da codice su mysql.
    Qualcuno ha avuto a che fare con VB e Mysql?

    Cioa e grazie in anticipo.....
    GoVegan!

    http://www.ivegan.it
    http://www.biello.it

  2. #2
    strgSQL = "SELECT * FROM tablename"

    Adodc1.RecordSource = strgSQL
    Adodc1.Refresh


    In pratica Mysql mi restituisce un errore di sintassi....
    GoVegan!

    http://www.ivegan.it
    http://www.biello.it

  3. #3

    Trovato

    In pratica scordavo

    Adodc1.CommandType = adCmdUnknown


    quindi per faer una query con Myodbc da vb in MySql

    strgSQL = "SELECT * FROM tablename"
    Adodc1.CommandType = adCmdUnknown
    Adodc1.RecordSource = strgSQL

    Adodc1.Refresh

    Grazie lo stesso
    GoVegan!

    http://www.ivegan.it
    http://www.biello.it

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 © 2025 vBulletin Solutions, Inc. All rights reserved.