Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Libros
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
create table Libros ( codigo int identity, nombre varchar (100), autor varchar (100), editorial varchar (100), precio float, cantidad int, fechaingreso datetime ); exec sp_columns libros; insert into Libros ( nombre, autor, editorial, precio, cantidad, fechaingreso) values ('cienaños de soledad', 'Gabrile Garcia Marques','la sabana',null,10,'06-17-2019') ; insert into Libros ( nombre, autor, editorial, precio, cantidad, fechaingreso) values ('El hombre que calculaba', 'Malba Tahan','NORIEGA',null,11,'06-17-2019') ; insert into Libros ( nombre, autor, editorial, precio, cantidad, fechaingreso) values ('Don quijote de la mancha', 'Miguel de Cervantes3','Francisco de Robles',50000,32,'06-17-2019') ; insert into Libros ( nombre, autor, editorial, precio, cantidad,fechaingreso) values ('La franja amarilla', 'WILLIAM OSPINA','Penguin Random House Grupo Editorial Colombia',null,22,'06-17-2019') ; insert into Libros ( nombre, autor, editorial, precio, cantidad,fechaingreso) values ('algebra', 'Aurelio Baldor','Grupo Editorial Patria',null,7,'06-17-2019') ; select* from Libros; select nombre, editorial from Libros where codigo=4; --delete from Libros where codigo=5; select* from Libros; update Libros set precio=42000 where codigo=1 ; update Libros set precio=30000 where codigo=2 ; update Libros set precio=45000 where codigo=4 ; update Libros set precio=28000 where codigo=5 ; select* from Libros; update Libros set cantidad=null where codigo=4 select* from Libros;
View schema
Execution time: 0,03 sec, rows selected: 33, rows affected: 10, absolute service time: 0,22 sec, absolute service time: 0,21 sec
edit mode
|
history
|
discussion