Happy birthday!
The zoo has some new-born baby possums.
Let's add them to the database.
To do that, we need a different SQL
statement, the insert statement.
Insert adds a row to a table.
When you write an insert,
you tell the database,
what values to put into
the columns of that table.
If the new values aren't in the same
order, as the table's columns,.
Then you also have to tell it
what columns they go into.
On the next page,
you'll see two queries in the editor.
One of them is the select query and
the other is an insert.
Your job is to fill in the second query,
with the right insert statement.
When you press the test run or
submit button, you'll see the results of
the select before the insert, and
then the results after the insert.
And here's what we'd like to do.
Find the opossums that
are already in the table, and
add the newborn opossum to the table.
!عيد ميلاد سعيد
.شهدت حديقة الحيوان ميلاد بعض حيوانات البوسوم
.هيا نضيفها إلى قاعدة البيانات
لتنفيذ ذلك، يلزم استخدام عبارة SQL
.مختلفة، ألا وهي عبارة الإدراج insert
.تقوم عبارة الإدراج بإضافة صف إلى الجدول
،عند كتابة عبارة الإدراج
تخبرون قاعدة البيانات
بالقيم المطلوب وضعها
.في أعمدة ذلك الجدول
إن لم تكن القيم الجديدة بنفس
،الترتيب الموجودة عليها أعمدة الجدول
فيتعين أيضًا توضيح
.الأعمدة التي يتم وضعها فيها
،في الصفحة التالية
.تشاهدون استعلامين في المحرر
واحد منهما عبارة عن استعلام تحديد
.والآخر استعلام إدراج
مهمتكم هي القيام بتعبئة الاستعلام الثاني
.بعبارة الإدراج الصحيحة
عند الضغط على test run أو
زر submit، ستشاهدون نتائج
استعلام التحديد قبل استعلام الإدراج، ثم
.النتائج بعد استعلام الإدراج
.ها هو ما نريد فعله
قوموا بالبحث عن حيوانات البوسوم
،الموجودة بالفعل في الجدول
.وإضافة مواليدها الجديدة إلى الجدول
Feliz aniversário!
O zoológico tem alguns bebês gambá recém-nascidos.
Vamos adicioná-los ao banco de dados.
Para fazer isso, precisamos de uma instrução SQL
diferente, a instrução de inserção.
Insert adiciona uma linha a uma tabela.
Ao escrever uma instrução insert,
você diz para o banco de dados
quais valores colocar
nas colunas da tabela.
Se os novos valores não estiverem na mesma
ordem que as colunas da tabela,
então você terá que informar
para quais colunas eles vão.
Na próxima página,
você verá duas consultas no editor.
Uma delas é a consulta select e
a outra é uma insert.
Seu trabalho é preencher a segunda consulta
com a instrução de inserção correta.
Ao pressionar o botão test run ou
submit, você verá os resultados de
select antes de insert e
os resultados após insert.
E aqui está o que gostaríamos de fazer.
Encontre os gambás que
já estão na tabela e
adicione o gambá recém-nascido à tabela.
生日快乐!
动物园有一些新出生的负鼠宝宝
让我们把它们加到数据库中
要这样做 我们需要一个不同的 SQL 语句 insert 语句
Insert 向表格添加新行
你在编写 insert 语句时 你告诉数据库
对表格的列放入什么值
如果新值的顺序与表格的列不同
那么你还需要告诉数据库 这些值放入哪些列
在下一页 你会看到编辑器中有两个查询
其中一个是 select 查询 另一个是 insert 查询
你的工作是用正确的 insert 语句填写第二个查询
在你按下运行测试或提交铵钮后
你会看到插入前 select 的结果 然后会看到插入后的结果
我们要做的是
找出表格中已经有的负鼠
向表格添加新出生的负鼠