Project

General

Profile

Actions

Tareas #199

closed

Enlarge COUSUA to 45 characters

Added by Jesús Freire almost 7 years ago. Updated over 6 years ago.

Status:
Cerrada
Priority:
Normal
Assignee:
Start date:
08/02/2018
Due date:
08/05/2018
% Done:

100%

Estimated time:
4:00 h (Total: 8:00 h)
Spent time:
(Total: 4:00 h)
Puntos de historia:
4

Description

Take a list of COUSUA from ATCL table:

SELECT * FROM ATCL WHERE CODATR IN ('COUSUA', 'CODAUT', 'AUULMO')

Prepare SQL script to alter column cousua of the tables extracted from the list of ATCL
select concat('ALTER TABLE ', vaclob, ' ALTER COLUMN ', codatr, ' TYPE VARCHAR(45);') as sql from atcl where codatr in ('COUSUA', 'CODAUT', 'AUULMO') and coinob in (select coinob from objm where tiobme='CD' and coobme='OBJM') and subcla='CD' order by vaclob;
update atcl set longitud=45.00 where codatr in ('COUSUA', 'CODAUT', 'AUULMO') and coinob in (select coinob from objm where tiobme='CD' and coobme='OBJM') order by vaclob;
select concat('UPDATE ', vaclob, ' SET ', codatr, ' =''jfreire'' WHERE ', codatr, ' = ''FMJ000'';') as sql from atcl where codatr in ('COUSUA', 'CODAUT', 'AUULMO') and coinob in (select coinob from objm where tiobme='CD' and coobme='OBJM') and subcla='CD' order by vaclob;

List of users:
jfreire FMJ000
maria HPM000
antoniofreire FMA000


Subtasks 2 (0 open2 closed)

Selene SQL Logic - Tareas #215: Prepare LSUsuario to validate length user codeCerradaJesús Freire08/02/201808/02/2018

Actions
Selene J2EE Webapp - Tareas #216: Allow lower case for field cousua into JSPCerradaJesús Freire08/02/201808/05/2018

Actions
Actions

Also available in: Atom PDF