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
|
|
| tbrename(old,new)
|
function tbrename(old,new)
% tbrename Rename MySQL table [mym utilities]
% Example tbrename('old',new')
if istable(new)
error('Table %s already exists',new)
end
if ~istable(old)
error('Table %s not found',old)
end
try
mym(['rename table ' old ' to ' new])
catch
error('Table %s not renamed; check if %s is a valid name',old,new)
end
|
|
Contact us at files@mathworks.com