No BSD License
-
MYDEMO: Demonstrate usage of ...
-
dbadd(dbname)
-
dbcurr
-
dbdrop(name)
-
dblist
-
dbopen(name)
dbopen Make MySQL database current [mym utilities]
-
isdbase(name)
isdbase True if MySQL database exists [mym utilities]
-
istable(name)
-
myclose
-
myisopen
myisopen True if MySQL instance active [mym utilities]
-
myopen(host,user,pwd)
-
tbadd(table,names,types,varar...
-
tbattr(table)
-
tbdrop(table)
-
tblist(varargin)
tblist List tables of MySQL database [mym utilities]
-
tbprint(table)
tbprint List a few rows of MySQL table [mym utilities]
-
tbread(table,cols,vecs,sql)
-
tbrename(old,new)
-
tbsize(table,varargin)
-
tbwrite(table,cols,vecs,varar...
-
MYDEMO: Demonstrate usage of ...
-
View all files
|
|
| tblist(varargin)
|
function[tables] = tblist(varargin)
% tblist List tables of MySQL database [mym utilities]
% Inputs name - database name, string (optional, current database default)
% Outputs tables - table names, (m*1) cell array
% Example tblist('project')
if nargin
name = varargin{1};
if ~isdbase(name)
error('Database %s not found',name)
end
else
name = dbcurr;
if isempty(name)
error('No database selected; use ''dbopen'' to open a database')
end
end
tables = mym(['show tables in ' name]);
|
|
Contact us at files@mathworks.com