Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how Mysql database function java code execute ?

  Asked By: Ricky    Date: Nov 24    Category: Java    Views: 2090
  

I want that a java code should execute function when create database in
mysql. Please suggest some way of doing it.

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Vonda Ramirez     Answered On: Nov 24

your question was a bit ambiguous.
if you want to create database  using your java  application, execute  the following query: "create database <dbname>"
if you want to execute some java code  when creating database, its a bit harder.
MySQL databases are created as folders in /var/lib/mysql or where ever you database path is.
watch for creation of a new directory in that folder and execute your java code when you see new directory created.

 
Answer #2    Answered By: Bach-yen Nguyen     Answered On: Nov 24

i'm need Creating a Stored Procedure or Function in an mysql  Database
this link for oracle database  :
www.exampledepot.com/.../...rocedureAndFunction.ht
ml

 
Answer #3    Answered By: Lurline Fischer     Answered On: Nov 24

Mysql does not support execution of java  stored proc.
You can always extend mysql  since the source code  is available!
You can execute  shell scripts if you don't care about performance

 
Didn't find what you were looking for? Find more on how Mysql database function java code execute ? Or get search suggestion and latest updates.




Tagged: