CREATE PROCEDURE ADICIONARCLIENTE@Nit as int, @Nombre as varchar(50), @Direccion as varchar (30), @Email as varchar(30), @Limcredito as int, @FonoFijo as int, @FonoMovil as int, @estado as bitAS insert TCliente (Nit, Nombre, Direccion, Email, LimCredito, FonoFijo, FonoMovil, Estado)values ( @Nit , @Nombre, @Direccion, @Email, @LimCredito, @FonoFijo, @FonoMovil, @estado)
CREATE Proc BUSCARCLIENTEPORNOMBRE@Nombre varchar(50)as Select CodClienteFrom TClienteWhere Nombre like @Nombre
CREATE PROCEDURE MODIFICARCLIENTE@CodCliente as int, @Nit as int, @Nombre as varchar(50), @Direccion as varchar (30), @Email as varchar(30), @Limcredito as int, @FonoFijo as int, @FonoMovil as int, @estado as bitASUpdate TClienteset Nit = @Nit, Nombre = @Nombre, Direccion = @Direccion, Email = @Email, LimCredito = @LimCredito, FonoFijo = @FonoFijo, FonoMovil= @FonoMovil, Estado= @Estadowhere CodCliente = @CodCliente
hola que tal, lo ultimo no comprendo muy bien:QUOTECREATE PROCEDURE MODIFICARCLIENTE@CodCliente as int, @Nit as int, @Nombre as varchar(50), @Direccion as varchar (30), @Email as varchar(30),@Limcredito as int,@FonoFijo as int,@FonoMovil as int,@estado as bitASUpdate TClienteset Nit = @Nit, Nombre = @Nombre, Direccion = @Direccion, Email = @Email, LimCredito = @LimCredito, FonoFijo = @FonoFijo, FonoMovil= @FonoMovil, Estado= @Estadowhere CodCliente = @CodClienteen el caso del where CodCliente = @CodCliente