Last change
on this file since 4 was
4,
checked in by zhangj, 10 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
363 bytes
|
Line | |
---|
1 | function[dbase] = dbcurr |
---|
2 | % DBCURR Show current MySQL database |
---|
3 | % INPUTS : None |
---|
4 | % OUTPUTS : DBASE, string, empty if no database open |
---|
5 | % EXAMPLE : currdb = dbcurr; |
---|
6 | % AUTHOR : Dimitri Shvorob, dimitri.shvorob@vanderbilt.edu, 8/7/06 |
---|
7 | if ~mycheck |
---|
8 | error('No MySQL instance detected. Use MYOPEN to connect.') |
---|
9 | else |
---|
10 | dbase = char(mym('select database()')); |
---|
11 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.