Skip to main content
-8 votes
1 answer
54 views

I have 2 tables: Airport and City Airport has, of course, its own ID, a name, and also a CityName foreign key related to the name of the city it is in. City just has a Name and an ID. How do I ...
Filip's user avatar
  • 1
Best practices
0 votes
7 replies
83 views

I have a PHP + MySQL project where I need to generate sequential transaction IDs. Each transaction can have multiple items, so all rows for that transaction must share the same txn_in value. Tables ...
Developer Account's user avatar
-2 votes
0 answers
65 views

Пароль я использую настоящий, тут я его просто скрыл. Объясните мне пожалуйста, что я сделал не так? Вот сам скрипт: import pymysql try: # Подключение к базе данных connection = pymysql....
CALTON's user avatar
  • 1
-1 votes
0 answers
33 views

I am fetching ProductTransfer table together with related products. Although the total records = 1200, am only getting three records returned by my api. Here is my models public class ...
Amos n's user avatar
  • 37
2 votes
3 answers
142 views

In the book Learning PHP, MySQL, JavaScript, CSS, and HTML5 – A Step-by-Step Guide to Creating Dynamic Websites (6th Edition), it says: “The highest level of MySQL structure is a database.” What does ...
Jone Doe's user avatar
Best practices
1 vote
3 replies
73 views

I'm using a table of approximately 1TB in a MySQL database. This table also has a monthly partition. We store the last two months of data in this table and regularly truncate the data from the ...
user1592429's user avatar
1 vote
1 answer
145 views

SELECT tt.trans_type_name AS transaction_type, trans.transaction_time, a.trans_action_name AS transaction_action_name, trans.transaction_notes FROM(SELECT Cast(...
Thomas A Mathew's user avatar
Advice
0 votes
1 replies
61 views

We’re working with a user table populated from multiple SSO sources, and the data has inconsistencies that hinder generating standardized names. I need a persistent, automated way to extract and ...
John Doe's user avatar
Advice
0 votes
9 replies
141 views

I am designing a DB where basically parent can't exist without two children. E.g: Entity set Marriage, CAN'T exist without entity set Man and entity set Woman, but neither Man or Woman need Marriage ...
Theo's user avatar
  • 21
-2 votes
0 answers
27 views

A user I'm supporting is getting the error. The user has grants to various tables in mydb, but when he tries to access them, he gets the error: Access denied for user 'myuser'@'myhost' to database '...
Ben Slade's user avatar
  • 532
0 votes
1 answer
58 views

I have written a small Glue script that fetches some data between two dates, but I found that it scans the entire table instead of just the data within the specified time range. I also tried creating ...
new coderrrr's user avatar
Advice
1 vote
5 replies
160 views

So I'm uploading around 50MB into a longblob in a local mysql server. Using LoadFromStream, setting the param value is near-instantaneous but the execution of the UPDATE statement takes around 2 ...
oui's user avatar
  • 113
Best practices
1 vote
6 replies
123 views

I have a list which consists of numeric values. In Python, it is written as: [959, 3480, 9346, 8367, 2847, 8330, 6946, 9586, 9722, 2775] Or in the case of MySQL: create table testtb(n int); insert ...
blabla_bingo's user avatar
  • 2,217
Best practices
0 votes
8 replies
140 views

I am learning SQL from a class online. I wanted to ask if it's generally best to use LIMIT in my queries to make them run faster, or at least until I have them tested and pulling the right data. If ...
Student Driver's user avatar
Advice
0 votes
8 replies
139 views

I am trying to set up a development and testing environment for the software of my new employer. The data is quite complex and due to some shortcuts/bad architecture decisions of the company that ...
Stefan L.'s user avatar

15 30 50 per page
1
2 3 4 5
43927