mysql tag

409 questions


1 answers
51 views
0
Understanding Differences in Query Behavior in mysql Connection Pools

const mysql=require(mysql);const config = { host: '127.0.0.1', user: 'root', password:', database: test, connectionLimit:10}const pool = mysql.createPool(config);letstrQuery='SELECT* FROM `test';// g ...

2 years ago

1 answers
38 views
0
File sort occurs even if compound index is used when using in clause and order by

The following table adds a composite index of id, position to .+--------------------+| id|position|+------+----------+| 1 | 1 || 2 | 2 || 3 | 5 || 4 | 4 |+------+----------+show index from test;+-...

2 years ago

1 answers
42 views
0
If id is null after left join in mysql, the join condition disappears.

We have tables A, B, and C, and we would like to find A related to a particular C.SELECT* FROM A A INNER JOIN B ON b.id = a.b_id LEFT JOIN CC ON c.b_id=b.id AND c.type='hogehoge'WHERE c.id IS NULLAt t...

2 years ago

4 answers
155 views
0
Want to know best design practices when you want to filter a table with multiple conditions in RDB

I'd like to know the best design practice when you want RDB to filter a table under multiple conditions (including AND/OR).For example, table name:sample_tableSchema: - id integer - name varchar - co...

2 years ago

2 answers
39 views
0
I want to add serial numbers in groups in SQL of MySQL

I use MySQL 5.6.What kind of SQL is common for RDBMS SQL that does not have an analysis function?Please let me know if there is any SQL that can be resolved, even if it is not common.Thank you for you...

2 years ago

1 answers
40 views
0
If id is null after left join in mysql, the join condition disappears.

We have tables A, B, and C, and we would like to find A related to a particular C.SELECT* FROM A A INNER JOIN B ON b.id = a.b_id LEFT JOIN CC ON c.b_id=b.id AND c.type='hogehoge'WHERE c.id IS NULLAt t...

2 years ago

1 answers
44 views
0
How to pass the jQuery Rating to PHP with the submit button

I would like to use jQuery Rate (http://wbotelhos.com/raty) to give a five-step rating to the form of posting a review of a book.<form action=review.php method=post> <label class=control-labe...

2 years ago

1 answers
116 views
0
I want to run multiple queries on node.js and mysql

I have been trying to create a site using node.js and javascript while searching various ways.I'm trying to write a code to send the results of multiple queries to ejs, but I get an error.If you do re...

2 years ago

2 answers
70 views
0
I want to stop mySQL server in CentOS 7

I am using MySQL 5.7 in CentOS 7.I want to stop all MySQL, but when I stop and check the status, it looks like the following and I can't stop it.#Stop MySQLservice mysqld stop# Check statusservice mys...

2 years ago

1 answers
39 views
0
When I added columns to a table with many update queries in mysql, the DB load increased and the site dropped.

PHP+mysql is running web service, but when I added one column in ALTER TABLE during the day to a table with a lot of update queries (transactions), the DB load increased and I couldn't access the site...

2 years ago
« - 9 - »

© 2024 OneMinuteCode. All rights reserved.