Using JDBC/ODBC to pass SQL statements to MS-Access....
Move to
Next Prev
Up Top
See also
HelloWorld
Use Parameters
Directives
Debugger
Arithmetic
Constraints
File From Server
AppletLoadsFile
GetURL
Client-Server with Sockets
Date
ExecProcess
ExecProcess_2
GUI
GuiEvents
Gui Image
Interactive
JavaToMinerva_1
JavaToMinerva_2
JavaToMinerva_3
JavaToMinerva_4
JavaToMinerva_5
JavaToMinerva_6
Java Applet Uses Minerva
JavaArrays
MinervaToJava
MinervaToJavaScript
MinervaToJava_1
MinervaToJava_2
MinervaToJava_3
MinervaToJava_4
Reflection
Servlet
JDBC
Internationalization
StartupArchive
IF Computer > MINERVA > Example Programs > MINERVA Features > JDBC

JDBC

Using JDBC/ODBC to pass SQL statements to MS-Access.

The program connects to an existing data base, reads everthing it can find from a table 'TABLE1', then adds a record with INSERT and reads the updated database.

The example uses create_interface/2 to make the JDBC driver available to the MINERVA programmer.

The program is configured as standalone application.

Example output:

'SELECT * FROM table1'
statement_execute('SELECT * FROM table1')
statement_getResultSet
        '1'     '1'     hello
        '2'     '2'     'おはよう'
        '3'     '3'     hey
        '4'     '4'     moin
        '5'     '5'     working
'INSERT INTO TABLE1 VALUES (6, 6,\'more data\')'
statement_execute_failed
'SELECT * FROM TABLE1'
statement_execute('SELECT * FROM TABLE1')
statement_getResultSet
        '1'     '1'     hello
        '2'     '2'     'おはよう'
        '3'     '3'     hey
        '4'     '4'     moin
        '5'     '5'     working
        '6'     '6'     'more data'
'example done'

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Language
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/ExamplePrograms/MinervaFeatures/JDBC/home_en.html
published 2008/5/12 update 2001/3/22 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS