Sync from remote server: 2025-10-12 18:56:41
This commit is contained in:
14
Tilt/cancellaDB.m
Executable file
14
Tilt/cancellaDB.m
Executable file
@@ -0,0 +1,14 @@
|
||||
function cancellaDB(IDcentralina,DTcatena,Data_scarico,FileName,conn)
|
||||
|
||||
comando = ['delete from ELABDATADISP where UnitName = ''' IDcentralina...
|
||||
''' and ToolNameID = ''' DTcatena ''' and EventDate >= ''' Data_scarico ''' '];
|
||||
|
||||
curs = exec(conn,comando);
|
||||
|
||||
text = strcat('---Elaborated Data of Chain: ',DTcatena,' deleted starting from date: ',Data_scarico,' during the execution of LastElab function.---');
|
||||
fileID = fopen(FileName,'a');
|
||||
fmt = '%s \r';
|
||||
fprintf(fileID,fmt,text);
|
||||
fclose(fileID);
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user