LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 45 of 106
0 votes
1 ans
3 views
SELECT list is not in GROUP BY clause and contains nonaggregated column .... incompatible with sql_mode=only_full_group_by

I'm using MySQL 5.7.13 on my windows PC with WAMP Server. My problem is while executing this query SELECT * FROM `tbl_customer_pod_uploads`...

database Solved
DH
asked 1 month ago by Dhanu Kanakala
0 votes
1 ans
3 views
Remove duplicate rows in MySQL

I have a table with the following fields: id (Unique) url (Unique) title company site_id Now, I need to remove rows having same `...

database Solved
CH
asked 1 month ago by Chetan
0 votes
1 ans
3 views
Multiple Updates in MySQL

I know that you can insert multiple rows at once, is there a way to update multiple rows at once (as in, in one query) in MySQL? Edit: For example I have th...

database Solved
TE
asked 1 month ago by Teifion
0 votes
1 ans
3 views
How do MySQL indexes work?

I am really interested in how MySQL indexes work, more specifically, how can they return the data requested without scanning the entire table? It's off-t...

database Solved
GO
asked 1 month ago by good_evening
0 votes
1 ans
3 views
What's the difference between VARCHAR and CHAR?

What's the difference between VARCHAR and CHAR in MySQL? I am trying to store MD5 hashes.

database Solved
ST
asked 1 month ago by steven
0 votes
1 ans
3 views
How to allow remote connection to MySQL

I have installed MySQL Community Edition 5.5 on my local machine and I want to allow remote connections so that I can connect from external source. How can I...

database Solved
LE
asked 1 month ago by Leo
0 votes
1 ans
3 views
How can I import a database with MySQL from terminal?

How can I import a database with mysql from terminal? I cannot find the exact syntax.

database Solved
AN
asked 1 month ago by aneuryzm
0 votes
1 ans
3 views
Export and Import all MySQL databases at once

I want to keep a backup of all my MySQL databases. I have more than 100 MySQL databases. I want to export all of them at the same time and again import all of t...

database Solved
NE
asked 1 month ago by NewUser
0 votes
1 ans
3 views
Add Foreign Key to existing table

I want to add a Foreign Key to a table called "katalog". ALTER TABLE katalog ADD CONSTRAINT `fk_katalog_sprache` FOREIGN KEY (`Spra...

database Solved
FR
asked 1 month ago by frgtv10
0 votes
1 ans
3 views
Error renaming a column in MySQL

How do I rename a column in table `xyz`? The columns are: Manufacurerid, name, status, AI, PK, int I want to rename to `manufacturerid` I tried usi...

database Solved
BH
asked 1 month ago by Bharanikumar
0 votes
1 ans
3 views
How do I set the time zone of MySQL?

On one server, when I run: mysql> select now(); +---------------------+ | now() | +---------------------+ | 2009-05-...

database Solved
OM
asked 1 month ago by omg
0 votes
1 ans
3 views
Does MySQL ignore null values on unique constraints?

I have an email column that I want to be unique. But I also want it to accept null values. Can my database have 2 null emails that way?

database Solved
HU
asked 1 month ago by Hugo Mota
0 votes
1 ans
3 views
How to export a mysql database using Command Prompt?

I have a database that is quite large so I want to export it using Command Prompt but I don't know how to. I am using WAMP.

database Solved
ST
asked 1 month ago by Starx
0 votes
1 ans
3 views
Copy/duplicate database without using mysqldump

Without local access to the server, is there any way to duplicate/clone a MySQL db (with content and without content) into another without using `mysqldump`?...

database Solved
JH
asked 1 month ago by jhornnes
0 votes
1 ans
3 views
Error 1046 No database selected, how to resolve?

Error SQL query: -- -- Database: `work` -- -- -------------------------------------------------------- -- -- Table structure f...

database Solved
ST
asked 1 month ago by steph
0 votes
1 ans
3 views
Get the new record primary key ID from MySQL insert query?

Let's say I am doing a MySQL `INSERT` into one of my tables and the table has the column `item_id` which is set to `autoincrement` and `primary key`. **H...

database Solved
AM
asked 1 month ago by Amy Neville
0 votes
1 ans
3 views
What is the difference between tinyint, smallint, mediumint, bigint and int in MySQL?

What is the difference between tinyint, smallint, mediumint, bigint and int in MySQL? In what cases should these be used?

database Solved
SE
asked 1 month ago by Sein Kraft
0 votes
1 ans
3 views
Best database field type for a URL

I need to store a url in a MySQL table. What's the best practice for defining a field that will hold a URL with an undetermined length?

database Solved
US
asked 1 month ago by user22325
0 votes
1 ans
3 views
ERROR 1396 (HY000): Operation CREATE USER failed for 'jack'@'localhost'

I seem to be unable to re-create a simple user I've deleted, even as root in MySQL. My case: user 'jack' existed before, but I deleted it from my...

general-dev Solved
RU
asked 1 month ago by Russ Bateman
0 votes
1 ans
3 views
Best way to test if a row exists in a MySQL table

I'm trying to find out if a row exists in a table. Using MySQL, is it better to do a query like this: SELECT COUNT(*) AS total FROM table1 WHERE ......

database Solved
BE
asked 1 month ago by Bernard Chen