LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

422 solutions found in database

Page 16 of 22
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
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
0 votes
1 ans
3 views
Get table column names in MySQL?

Is there a way to grab the columns name of a table in MySQL using PHP?

database Solved
AN
asked 1 month ago by An employee
0 votes
1 ans
3 views
MySQL: Get character-set of database or table or column?

What is the (default) charset for: - MySQL database - MySQL table - MySQL column

database Solved
AM
asked 1 month ago by Amandasaurus
0 votes
1 ans
3 views
How do I see all foreign keys to a table or column?

In MySQL, how do I get a list of all foreign key constraints pointing to a particular table? a particular column? This is the same thing as [this Oracle questio...

database Solved
CH
asked 1 month ago by Christian Oudard
0 votes
1 ans
3 views
MySQL Query GROUP BY day / month / year

Is it possible to make a simple query to count how many records I have in a determined period of time like a year, month, or day, having a `TIMESTAMP` field, li...

database Solved
FE
asked 1 month ago by Fernando Barrocal