Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
-- TABLA DETALLE ORDEN CREATE PROCEDURE inserta_detalle_orden @codi_orde int, @codi_prod int, @preciouni money, @cantidad smallint, @descue real AS BEGIN INSERT INTO DETALLE_ORDEN (codi_orde, codi_prod, preciouni, cantidad, descue) VALUES (@codi_orde, @codi_prod, @preciouni, @cantidad, @descue) END -- ******************************************************* CREATE PROCEDURE actualiza_detalle_orden @codi_orde int, @codi_prod int, @preciouni money, @cantidad smallint, @descue real AS BEGIN UPDATE DETALLE_ORDEN SET preciouni = @preciouni, cantidad = @cantidad, descue = @descue WHERE codi_orde = @codi_orde AND codi_prod = @codi_prod END -- ******************************************************* CREATE PROCEDURE elimina_detalle_orden @codi_orde int, @codi_prod int AS BEGIN DELETE FROM DETALLE_ORDEN WHERE codi_orde = @codi_orde AND codi_prod = @codi_prod END -- ******************************************************* CREATE PROCEDURE consulta_detalle_orden @codi_orde int, @codi_prod int, @preciouni money OUTPUT, @cantidad smallint OUTPUT, @descue real OUTPUT AS BEGIN SELECT @preciouni = preciouni, @cantidad = cantidad, @descue = descue FROM DETALLE_ORDEN WHERE codi_orde = @codi_orde AND codi_prod = @codi_prod END
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)