User Tools

Site Tools


informatica:linux:bbdd:sqlite

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
informatica:linux:bbdd:sqlite [2015/08/20 13:26] javiinformatica:linux:bbdd:sqlite [2015/08/20 13:37] (current) javi
Line 23: Line 23:
   sqlite3 /ruta/base_datos.db < base_datos.sql   sqlite3 /ruta/base_datos.db < base_datos.sql
  
 +<code>
 +DROP TABLE IF EXISTS RADIO;
 +
 +CREATE TABLE RADIO (
 +        id TEXT NOT NULL PRIMARY KEY,
 +        name TEXT NOT NULL,
 +        description TEXT,
 +        url TEXT NOT NULL,
 +        longitude REAL,
 +        latitude REAL,
 +        altitude REAL
 +);
 +
 +INSERT INTO "RADIO" VALUES('1', 'Contrabanda FM', 'Radio libre y no comercial de Barcelona', 'http://www.porticoluna.com:8000/contrabanda', '2.174580', '41.380289', '');
 +</code>
informatica/linux/bbdd/sqlite.1440077165.txt.gz · Last modified: 2015/08/20 13:26 by javi