⌘BABAKOV.NET Let's code!
100% [dark] [ru]
~/tags/mysql $

#mysql

15 posts

15 total · page 2 / 2

MySQL Without Loops (One Script).

Here I will provide some examples of useful MySQL queries that I think many people may find useful. At least, when I was looking for such information, I couldn't find anything worthwhile. So I came up with it myself. The data queries will help save time and not write procedures for data processing, which work much slower, or help make these procedures significantly faster. Queries show how in MySQL you can make changes to records in a table, with iteration over all necessary values and with checking necessary conditions but without any loops, only using MySQL means in one query.<br><br><b>So let's get started:</b><br><br>Inserting data from a query into a table:<br><br>

24 views 0 comments 0 likes ./Read →

Working with MySQL in C#

I hope this publication will not give readers the opportunity to repeat my mistakes and help make the initial correct choice. First, I would like to start with a strong recommendation: "When programming under .NET, always use MySQL .NET Connector!". Of course, you can connect to the database using ADO, but this is fraught with the fact that you will simply need to make changes when switching to Windows Vista and above.

46 views 0 comments 0 likes ./Read →

Important Note on Procedure Naming in MySQL!

From the archive I will tell you about one small nuance that will help save time and nerves. This feature was noticed by me only in MySQL (manifested both in 5 and currently in the test 6th). It is about the need for a special naming of procedures for proper recovery of the database from the MySQL archive (dump).

20 views 0 comments 0 likes ./Read →

Standard Utilities in MySQL

Standard utilities in MySQL are located in the bin subdirectory of the MySQL root directory. The list of most frequently used utilities includes: myisampack - Compresses MyISAM tables, reduces their size, and makes them read-only; mysql - Console client for accessing the MySQL server, allows executing SQL queries and administering the server; mysqladmin - Utility for performing administrative functions, such as creating or deleting databases, retrieving various information from the server, etc.; mysqlbinlog - Used for reading the contents of the binary log for data recovery in emergency cases; mysqlcheck - Used for describing, checking, optimizing, and recovering tables; mysqldump - Outputs the contents of the MySQL database in the form of an SQL query file or a text file with tabs. Creates a dump of the specified databases; mysqlhotcopy - Utility for creating a backup copy of tables without stopping the MySQL server, in other words, creating a hot copy of the database; mysqlimport - Performs a transfer from a text file to database tables; mysqlshow - Displays information about existing databases, tables, fields, and indexes.

26 views 0 comments 0 likes ./Read →

Поиск и регулярные выражения в MySQL

СУБД MySQL имеет различные инструменты для осуществления поиска, среди которых оператор LIKE , осуществляющий простейшие операции поиска, оператор RLIKE , предоставляющий возможности поиска по регулярным выражениям. Оператор LIKE Оператор L…

322 views 0 comments 0 likes ./Read →