GoConqr has a new look! Let us know what you think.

Flashcards

Opciones bacicas de manipulacion de datos

Gamiño Muñoz Pedro Spanish 5.0Average rating 5.0 out of 5 (1 rating) 4 cards

Cards in this deck (4)

  1. 1INSERT Una sentencia INSERT de SQL agrega uno o más registros a una (y sólo una) tabla en una base de datos relacional.EJEMPLO Y SINTAXIS
    # INSERT INTO agenda_telefonica (nombre, numero) VALUES ('Roberto Jeldrez', 4886850);
  2. 2UPDATE Una sentencia UPDATE de SQL es utilizada para modificar los valores de un conjunto de registros existentes en una tabla.EJEMPLO y SINTAXIS
    # UPDATE mi_tabla SET campo1 = 'nuevo valor campo1' WHERE campo2 = 'N';
  3. 3DELETE a sentencia DELETE de SQL borra uno o más registros existentes en una tabla.EJEMPLO Y SINTAXIS
    Ejemplo
    El ejemplo siguiente abre la tabla customer de la base de datos testdata. Se utiliza DELETE - SQL para marcar para eliminación todos los registros en los que el campo country contenga USA. Se muestran todos los registros marcados para ser eliminados. Se utiliza RECALL
    ALL para quitar las marcas de todos los registros marcados para eliminar.
    DELETE FROM customer WHERE country = "USA" && Mark for deletion
    CLEAR
    LIST FIELDS company, country FOR DELETE( ) && List marked records
    * If the file were packed at this point the records would be deleted
    WAIT WINDOW "Records currently marked for deletion"+CHR(13) + ;
    "Press any key to revert..."
  4. 4SELECT Muestra información sobre los datos almacenados en la base de datos. Dicha información puede pertenecer a una o varias tablas.EJEMPLO Y SINTAXIS
    # SELECT [ ALL / DISTINC ] [ * ] / [ListaColumnas_Expresiones] AS [Expresion]
    FROM Nombre_Tabla_Vista
    WHERE Condiciones
    ORDER BY ListaColumnas [ ASC / DESC ]

Information

Description
Flashcards on Opciones bacicas de manipulacion de datos, created by Gamiño Muñoz Pedro on 21/04/2016.
Views
4
Rating
Average rating 5.0 out of 5 (1 rating)

Feedback

What is it about?

What do you think of the new look?

How do you like it?