sql tag

625 questions


1 answers
140 views
0
Understanding sqlalchemy Foreign Keys

I wrote a method for registering data using sqlalchemy, but Error setting foreign key.In addition, the Belong class id is called as a foreign key in the Page class.▼ I want to be able to POST.* GET: I...

2 years ago

1 answers
104 views
0
Creating Dummy Data in SQL Server

Suppose you have a table similar to the following:table: m_tblID AreaCode--- ---1 00000000012 00000000023 00000000034 00000000215 0000000044. .. .. .ID is the primary keyDuplicate AreaCode is acceptab...

2 years ago

1 answers
129 views
0
Only certain table JOIN errors in PostgreSQL

Only certain table JOINs fail in PostgreSQLWe are developing API servers in Go language and PostgreSQL.At that time, the following error occurs only when the user table is used as JOIN.Starting from t...

2 years ago

1 answers
112 views
0
How can I implement search functions using search operators like Google and Bing?

I am creating a web application that allows me to manage the information of my books using CakePHP and MySQL.SQL.I have no plans to publish it to the outside world, but I started making it because I w...


1 answers
46 views
0
Date comparison with WHERE clause of UPDATE statement in mysql results in incorrect datetime value

Comparing dates in the WHERE clause of the UPDATE statement results in an incorrect datetime value.The following is the execution SQL.UPDATE SHAINSET COLUMN1 = COLUMN2WHERE DATE_FORMAT(NOW(), '%Y%m%d'...

2 years ago

1 answers
41 views
0
I logged out of the database and couldn't enter again.

Once I logged out of SQL, I couldn't put it in the existing database anymoreThe error is ERROR2006(HY000):MySQL server has gone awayNo connection.Trying to reconnect...ERROR 2013 (HY000): Lost connect...

2 years ago

3 answers
99 views
0
If you set the MySQL password with mysql_config_editor, the file size of the mysqldump result is 0 only when you run the sh file via crontab.

environment·CentOS·MySQL 5.6...password is set in mysql_config_editor·Linux username...testThe following command creates the file as expected.sh hoge.sh▼hoge.sh mysqldump --single-transaction-u databa...

2 years ago

2 answers
51 views
0
I don't know the grammar error in php...

The error appears as follows: It seems to be a grammatical error, but is it written incorrectly?Error: Parse error: syntax error, unexpected '$_SESSION'(T_VARIABLE), expecting', 'or'; 'in/var/www/html...

2 years ago

1 answers
104 views
0
How to Find Multiple Column Value Pairs in a Model of django

I would like to make the following query using the django model.Is it possible to do it in a model class?select *from table twhere (t.col1, t.col2) in ( (hoge, fuga), (foo, bar) )Quoted from https:/...

2 years ago

2 answers
47 views
0
Compare SQL to PHP arrays

Programming with PHP and MySqlThe $data array contains id (unique), date.Insert this data into the MySQL tableIf MySQL already has the same date, you want to exclude that $data and insert the data int...

2 years ago
« - 30 - »

© 2024 OneMinuteCode. All rights reserved.