Na linguagem SQL, o que faz o comando CREATE TABLE?
DDL em SQL Quiz

Quiz
•
Computers
•
11th Grade
•
Medium

Deonilde Costa
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Insere dados numa tabela
Altera a estrutura de uma tabela
Cria uma nova tabela
Exclui uma tabela existente
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Como adicionar uma nova coluna a uma tabela existente usando o comando ALTER TABLE?
ALTER COLUMN nome_da_coluna tipo_de_dado TO nome_da_tabela;
ALTER TABLE nome_da_tabela ADD nome_da_coluna tipo_de_dado;
ALTER nome_da_tabela ADD nome_da_coluna tipo_de_dado;
ADD COLUMN nome_da_coluna tipo_de_dado;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual é a finalidade do comando DROP TABLE em SQL?
Criar uma nova tabela numa base de dados SQL.
Adicionar uma nova coluna numa tabela existente numa base de dados SQL.
Renomear uma tabela numa base de dados SQL.
Excluir uma tabela existente numa base de dados SQL.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Como inserir novos registos numa tabela usando o comando insert into?
INSERT INTO tabela (coluna1, coluna2) VALUES (valor1, valor2);
INSERT INTO nome_tabela (coluna1, coluna2) VALUES (valor1, valor2);
INSERT INTO tabela (coluna1, coluna2) SET (valor1, valor2);
INSERT INTO nome_da_tabela (coluna1, coluna2) VALUES (valor1, valor2);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Explique como o comando UPDATE é usado para modificar dados numa tabela.
UPDATE nome_da_tabela WHERE coluna1 = valor1, coluna2 = valor2 SET condição;
UPDATE nome_da_tabela SET coluna1 = valor1, coluna2 = valor2 WHERE condição;
UPDATE SET nome_da_tabela coluna1 = valor1, coluna2 = valor2 WHERE condição;
Para usar o comando UPDATE, a sintaxe correta é: UPDATE nome_da_tabela SET coluna1 = valor1, coluna2 = valor2 WHERE condição;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual é a diferença entre o comando DELETE FROM e o comando DROP TABLE?
DELETE FROM é para excluir registos, DROP TABLE é para excluir a tabela inteira.
DELETE FROM é para renomear a tabela, DROP TABLE é para adicionar uma nova coluna
DELETE FROM exclui a tabela inteira, DROP TABLE exclui registos
DELETE FROM é para atualizar registos, DROP TABLE é para criar uma nova tabela
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
O que significa o comando COMMIT em SQL?
Confirmar as transações realizadas na base de dados.
Cancelar todas as alterações na base de dados.
Excluir permanentemente os dados da base de dados.
Criar uma nova base de dados.
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
PSI - M12 - Modelo Hierárquico de SGBD

Quiz
•
11th Grade
20 questions
3°DS _AV2_R2 3TEC_PM_Programação Mobile _12_20 Quizizz

Quiz
•
11th Grade - University
20 questions
EXERCÍCIO 10 PROGRAMAÇÃO E ROBÓTICA DURVAL 2025

Quiz
•
7th Grade - University
20 questions
FICHA DIAGNÓSTICA - PSI Módulo 13

Quiz
•
11th Grade - University
20 questions
teste de sql M14

Quiz
•
9th - 12th Grade
15 questions
Informática Amazon - 01

Quiz
•
2nd - 12th Grade
20 questions
1DS Portas Lógicas e Circuitos

Quiz
•
11th Grade
15 questions
AV1/R1 3TEC_Banco de Dados - Chave Primária

Quiz
•
1st Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University