MATLAB DATABASE TOOLBOX RELEASE NOTES Guia do Utilizador Página 177

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 684
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 176
PostgreSQL JDBC for Mac OS X
2-151
Connect to PostgreSQL using the JDBC connection command line.
When using the command line, you do not have to set up a data source with Database
Explorer. You can use the command line to pass all the required parameters for
connection.
1
Use the Vendor name-value pair argument of database to specify a connection to a
PostgreSQL database. For example, the following code assumes you are connecting
to a database named dbname on a database server named sname with user name
username and password pwd.
conn = database('dbname','username','pwd',...
'Vendor','PostgreSQL',...
'Server','sname');
2
Close the database connection conn.
close(conn)
See Also
close | database | javaaddpath
More About
“Working with Database Explorer” on page 4-2
Vista de página 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 683 684

Comentários a estes Manuais

Sem comentários