Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)
Digital Point » MySQL
by postcd
1w ago
Hello, the CMS is running a SQL in MariaDB 10.6.17-MariaDB-cll-lve SELECT tagid, tagtext, canonicaltagid, dateline FROM tag WHERE tagtext = 'z�cpa'; which results in: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '=' tagtext is varchar(100) latin1_swedish_ci Server charset: cp1252 West European (latin1) Inside a CMS control panel, I have recently set an UTF-8 charset (because original ISO* one started displaying bad... Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE ..read more
Visit website
Data Limits
Digital Point » MySQL
by Jeremy Benson
8M ago
I'm sure this has been done, but I need to get my head around limitations of a DB. I've done searches in the past that said 1.5gb db limit. Limits can be set by a provider, I'm guessing they modify open source code? ect ect. I can't use xml for my game project. I don't want to start with mysql if it can't complete the job. My worry is having many weapons crafted, with big descriptions, and getting an error 'mysql is done storing data, you got too much, sorry, your project is cooked.' lol.... Data Limits ..read more
Visit website
How can I remove all ocurance of , and I from a string using REGEXP_REPLACE in mysql-10.4.24-MariaDB
Digital Point » MySQL
by asifakhtar
1y ago
How can I remove all occurrence of , and I from a string using REGEXP_REPLACE? Tried the following but it doesn't work regexp_replace('123,|4abcd, aaa|,qqq|a', '|,', '', 'g ..read more
Visit website
Can we extract max value using regexp_substr in mysql?
Digital Point » MySQL
by asifakhtar
1y ago
I get a dynamic string with values separated by comma. Need to extract max value using regexp_substr. e.g "55,222,3,4000,10" I need to extract 4000 in the above case using regex in MySQL ..read more
Visit website
How can I extract address, city, state and Postal code from a text separated by * using REGEXP_SUBST
Digital Point » MySQL
by asifakhtar
1y ago
REGEXP_SUBSTR('4550 Montgomery Avenue*Toronto*Ontario*M4A 2S3*', '(.*? ){2}(.*?),') I get a list of dynamic text which contains address, city, state and Postal code separated by *. Need to exact address, city, state and Postal code using REGEXP_SUBSTR ..read more
Visit website
Getting sum of TIMESTAPMDIFF
Digital Point » MySQL
by neilfurry
2y ago
Hi, Im getting "1111 - Invalid use of group function" error on this function SUM(TIMESTAMPDIFF(HOUR,MIN(logDateTime),MAX(logDateTime))-1) as `rendered` is there a turn around on how to fix this problem? here is my full query: SELECT MIN(logDateTime) as `login`, MAX(logDateTime) as`logout`, SUM(TIMESTAMPDIFF(HOUR,MIN(logDateTime),MAX(logDateTime))-1) as `rendered` FROM btms_attendance WHERE `number`=1 AND (DATE(logDateTime)>='2022-03-01' AND DATE(logDateTime)<='2022-03-31') GROUP BY... Getting sum of TIMESTAPMDIFF ..read more
Visit website
MySQL output as JSON not gathering all rows
Digital Point » MySQL
by Stealthrtt
2y ago
Hey all the example below is what I currently get when I run the query below: { "data": [{ "id": "546789434", "photo": "rru7ehklu.jpg" }, { "id": "546789434", "photo": "934bu9rg9w3rg.jpg" }, .......... { "id": "546789434", "photo": "er6u57kerethu]} Code (markup): Using this query here: SELECT CONCAT("{""data"": [",... Code (SQL): mySQL output as JSON not gathering all rows ..read more
Visit website
How to select specific fields from pivot table that matches exact values
Digital Point » MySQL
by Kuna
2y ago
I have 3 tables - conversations - I save basic information about the conversation - users - Infor about user - conversation_users - table that saves information about which user belongs to which conversation In my case user "1" wants to get a conversation between him and users: 3, 4, 5. So I'm trying to fetch conversation_id = 12. First I need to find all conversations user "1" belongs to, that is conversation_id "1" and "12". Next I'm executing `SELECT * FROM conversations_users WHERE... How to select specific fields from pivot table that matches exact values ..read more
Visit website
Table joins
Digital Point » MySQL
by neilfurry
2y ago
Hi, I need some advice please. I need to join two tables together. Here is my Table A. View attachment 267194 I have this Table B View attachment 267195 and here is the result i expected View attachment 267196 You will see on the result table i want to maintain the exact number of rows from Table A and if rating is not available for certain person from Table B, it will just be NULL. Thank you in advance ..read more
Visit website
New tables for each day, week, month.
Digital Point » MySQL
by fryertuk
3y ago
Hello i have an web app that i have been building for the past couple of years. Its main role is to record employees attendances and there jobs during the day and then for the office staff to calculate pays and hours worked on jobs by multiple jobs. Also the office can see who is workin on what etc. At the moment each activity if it be logging on or logging off or starting a job or finishing a job or going to lunch or finishing lunch etc. This web app will be on the local Lan only. These... New tables for each day, week, month ..read more
Visit website

Follow Digital Point » MySQL on FeedSpot

Continue with Google
Continue with Apple
OR