Showing entries 1 to 10 of 18
Próximo 8 Viejas entradas »
Displaying posts with tag: common_schema (reset)
Common_schema: repetitive tasks with foreach

Although we have spoken several times of this framework MariaDB MySQL-today a new feature, I bring very useful when you need to perform repetitive tasks based on consultations. It is used foreach call. Here I present a practical example of how you’ve used to perform a specific task: to replace all null to zero in a table with a lot of fields values. Locating the table fields The best way of locating the fields that will be used in our task is by using the information_schema, an internal database needed...read more

The post Common_schema: repetitive tasks with foreach appeared first on Manejando datos.

Related posts: …

[Lea más]
Common_schema: tareas repetitivas con foreach

Aunque hemos hablado varias veces de este framework de MySQL-MariaDB, hoy os traigo una nueva función, muy útil cuando necesitas realizar tareas repetitivas basadas en consultas. Se trata de utilizar call foreach. Aquí expongo un ejemplo práctico de cómo lo he usado yo para ejecutar una tarea concreta: reemplazar todos los valores nulos a cero en una tabla con un monton de campos. Localizando los campos de la tabla Para localizar los campos a los que aplicar la rutina, qué mejor que utilizar information_schema, que es una de las bases...read more

Esta entrada Common_schema: tareas repetitivas con foreach es contenido original de Manejando datos - Blog de bases de …

[Lea más]
Learning #MySQL at SoyData.Net

This entrance is dedicated to a new website for learning #BigData in spanish: SoyData.net. What is SoyData.net It is a collaborative online training platform on all matters relating to data in spanish. It now has 15 fully uploaded and available courses to which they have registered more than five hundred people in just two weeks. These courses address specific high demand technologies like Hadoop, MongoDB, R and cover key areas such as visualization, cloud computing or Structured Query Language (SQL). It also provides an introduction to #BigData concept for those...read more

The post Learning #MySQL at SoyData.Net appeared first on Manejando datos.

Related posts: …

[Lea más]
Solution to Error 1067 Can’t start the server on MySQL

As I already wrote here, a week later after reporting this bug (because I change the datadir property on the config file my.ini) I didn’t have a solution for error 1067 Can’t Start service on MySQL 5.6.10. Now, you can read how I solve it!! How the error 1067 araise If you would like to raise the error, jsut install a MySQL 5.6.10 server, and modify the path where data is saved on the config file. Easy!! Trying in a new machine A pesar del error, uno siempre piensa que...read more

The post Solution to Error 1067 Can’t start the server on MySQL appeared first on Manejando datos.

Related posts: …

[Lea más]
Common-schema: redundant keys on MySQL-MariaDB

Let’s keep on learning more and more about common-schema, and I execute a query about redundant keys: SELECT * FROM common_schema.redundant_keys; The result to this query informs me that these keys are, literally, redundant, and the optimal solution si to remove them. Also, the query has more interesting information! After this, you think: “Well, if …

Continue reading »

Esta entrada Common-schema: redundant keys on MySQL-MariaDB es contenido original de Manejando datos - Blog de bases de datos y programación. This entrance Common-schema: …

[Lea más]
Common-schema: Claves redudantes en MySQL-MariaDB

Estudiando más funcionalidades de common-schema, ejecuto una consulta sobre claves redundantes: SELECT * FROM common_schema.redundant_keys Y me aparecen una serie de resultados, donde me informan de que he generado varias claves que, literalmente, “sobran“. El resultado de la consulta contiene mucha información interesante! Lo siguiente que piensas es: “Bueno, si sobran, hay que quitarlas“. Pero, …

Continuar leyendo »

Esta entrada Common-schema: Claves redudantes en MySQL-MariaDB es contenido original de Manejando datos - Blog de bases de datos y programación. This entrance …

[Lea más]
Listing primary keys of a database in MySQL-MariaDB

A few days ago, I needed to ask to all tables of a database about what is the name of the primary key of each table. The solution is easy, just using the data from the database information_schema, and by retrieving the data for the selected schema, this way: SELECT TABLE_NAME as table, COLUMN_NAME FROM …

Continue reading »

The post Listing primary keys of a database in MySQL-MariaDB appeared first on Manejando datos.

Listado de claves primarias de una base de datos en MariaDb-MySQL

Hace unos días, tuve necesidad de preguntarle a todas las tablas de una base de datos cuál es su clave primaria. Una solución sencilla es generar una consulta utilizando information_schema, recuperando sólo los datos del esquema que me interesa, de la siguiente forma: SELECT TABLE_NAME as tabla, COLUMN_NAME FROM `information_schema`.`COLUMNS` WHERE (`TABLE_SCHEMA` = 'basededatos') AND …

Continuar leyendo »

The post Listado de claves primarias de una base de datos en MariaDb-MySQL appeared first on Manejando datos.

common schema. Listing Functions and stored procedures with its dependencies

Let’s keep on learning more about common_schema. In today’s entrance, let’s introduce two more functionalities, very cool for developers, because they are related with funcions and stored procedures. Let’s begin with stored procedures (SP). If you need a list of all stored procedures of our server, just type this SQL sentence: SHOW PROCEDURE STATUS; However, …

Continue reading »

The post common schema. Listing Functions and stored procedures with its dependencies appeared first on Manejando datos.

common schema. Listado de Procedimientos y Funciones y sus dependencias

Seguimos destripando common_schema. Ahora vamos a ver 2 nuevas funcionalidades, muy interesantes para los desarrolladores, pues se trata de ver las dependencias que tienen los procedimentos y las funciones. Empezando por los procedimientos, para tener un listado de los procedimientos de nuestro servidor, escribiremos: SHOW PROCEDURE STATUS; Sin embargo, esta sentencia no es del todo …

Continuar leyendo »

The post common schema. Listado de Procedimientos y Funciones y sus dependencias appeared first on Manejando datos.

Showing entries 1 to 10 of 18
Próximo 8 Viejas entradas »