Return from current week only query
Reddit » MySQL
by /u/aerovega77
1d ago
I got this SELECT * FROM payroll WHERE userID ='.$_COOKIE['userID'].' AND week(now(), 1) = week(day, 1) ORDER BY day DESC What I'm trying to do is to get the payroll for each day of the current week only. Monday - Sunday. When I run it like on a tuesday, monday report wont show up, but if I run it later in the week I can get the other days except the first ?? ​ submitted by /u/aerovega77 [visit reddit] [comments ..read more
Visit website
Help with school project
Reddit » MySQL
by /u/JedLongtree1029
1d ago
Hello, I’m a student using MySQL for the first time. For one of my classes I have a project where I need to make a database system that a business can use to keep track of clients and orders. I used visual studio to make an application which connects to a local MySQL server that runs on my laptop. I used mamp and phpMyAdmin in order to run the server. The application works as it should, however I need to turn in the project to my professor along with the database and all of the records within it. My question is since the server runs locally on my computer, how can my professor use the applica ..read more
Visit website
How do you use FULLTEXT in your app?
Reddit » MySQL
by /u/Aggressive_Ad_5454
1d ago
I am curious: do you have a production application that uses FULLTEXT indexes and the MATCH ... AGAINST stuff in MySql / MariaDB to deliver something useful to ordinary, non-developer-non-DBA end users ? Do you know of any application like that? Does it use BINARY mode or the default natural-language mode? Does it support English? A Chinese-character language? Something else? NGRAMs ( not in mariaDb ) I am curious about how the feature is deployed. submitted by /u/Aggressive_Ad_5454 [visit reddit] [comments ..read more
Visit website
Need to change the name of all Primary Keys to ID AND update foreign key references
Reddit » MySQL
by /u/No_Cryptographer811
1d ago
Hey Team, As the name says, I have to change all of my Primary Keys to the name 'id' And I need to update all of the relevant foreign keys... I am writing out some SQL generating queries as we speak... But man, if one of my homies in the MySQL reddit had a script just hanging around, and could share it... That would be amazing :) . submitted by /u/No_Cryptographer811 [visit reddit] [comments ..read more
Visit website
Configurator issue upgrading from 8.2.0 to 8.3.0 on Windows (Path is not of a legal form)
Reddit » MySQL
by /u/danfratamico
1d ago
I am able to install MySQL Server 8.3.0 on top of 8.2.0 on Windows with no issues. When I run the 8.3.0 Configurator, I am able to connect to my 8.2.0 instance and the Version, Installation Directory, and Data Directory are all populating correctly but the Configuration File is blank. If I select the my.ini, the Next button is greyed out. Also, to the right of the Connect button there is a red X with the message: "The path is not of a legal form.". Any ideas? submitted by /u/danfratamico [visit reddit] [comments ..read more
Visit website
Minimum Specification for a mysql Proxmox CT
Reddit » MySQL
by /u/chribonn
1d ago
Hi, I would like to install mysql on my Proxmox Lab Server. I downloaded the template debian-12-turnkey-mysql_18.001-amd64.tar.gz from the repo. The database is a small, relatively low traffic with 20K records at most. What container specifications can I use? Thanks submitted by /u/chribonn [visit reddit] [comments ..read more
Visit website
Error Code: 3815. An expression of a check constraint 'CHK_LINEA_PEDIDO_CANTIDAD_PEDIDA' contains disallowed function. HELP
Reddit » MySQL
by /u/Alternative_Main_907
1d ago
I have the following script to create a database: DROP DATABASE IF EXISTS PEDIDOS; CREATE DATABASE IF NOT EXISTS PEDIDOS; USE PEDIDOS; DROP TABLE IF EXISTS LINEA_PEDIDO; DROP TABLE IF EXISTS CLIENTE; DROP TABLE IF EXISTS PEDIDO; DROP TABLE IF EXISTS ARTICULO; CREATE TABLE CLIENTE( DNI VARCHAR(9), NOMBRE VARCHAR(50), FECHA_NAC DATE, LOCALIDAD VARCHAR(50), SEXO VARCHAR(1), /*A mi forma de ver las cosas, un género se puede abreviar con un tan solo una letra: M o H*/ PAIS VARCHAR(100), CONSTRAINT PK_CLIENTE_DNI PRIMARY KEY(DNI), CONSTRAINT CHK_CLIENTE_PAIS CHECK(PAIS IN('España', 'Francia', 'Alem ..read more
Visit website
MySQL ON Mac having problems doing queries
Reddit » MySQL
by /u/JacobRiesenfern
1d ago
For some reason my sql is crashing with the ide. I think oracle isn’t doing anything to fix the problem. The download is the same as my current version . Is oracle just not supporting it anymore? submitted by /u/JacobRiesenfern [visit reddit] [comments ..read more
Visit website
CSV import as SQL Statement for automation
Reddit » MySQL
by /u/Mr_LA
1d ago
Hello MySQL Community, We are currently using DBeaver to import a CSV? We need that CSV import, but we want to automate it; hence we need to actually write the SQL for it. How can we replicate that import we do with DBeaver in a SQL Statement? We are currently actually use a MariaDB, but the Syntax should be the same for MySQL, correct? Here is an image I uploaded to ImgBB: https://i.ibb.co/5WfsQhZ/Screenshot-2024-04-11-at-12-27-32.png Cheers submitted by /u/Mr_LA [visit reddit] [comments ..read more
Visit website
Has anyone tries to capture the ON DELETE CASCADE changes in Mysql ?
Reddit » MySQL
by /u/One_Rose37
1d ago
The mysql binlogs do not capture the records deleted when a parent table record is deleted.Has anyone tried to capture and store the row by row changes that occur in mysql when a parent record (which has multiple child records....which in turn have multiple child records themselves) is deleted? submitted by /u/One_Rose37 [visit reddit] [comments ..read more
Visit website

Follow Reddit » MySQL on FeedSpot

Continue with Google
Continue with Apple
OR