SDN301m_-_SU_2024_-_FE_2261.webp
Lust99

SDN301m_-_SU_2024_-_FE_2261.webp

  • Media owner Lust99
  • Ngày thêm
(Choose 1 answer)
Which of the following function is valid for creation of new data inside MongoDB Shell?
A. function insertData(dbName, colName, num)
{
var col = db.getSiblingDB(dbName).getCollection(colName);
for (i = 0; i < num; i++){
col.insertData({x:i});
}
print(col.count());
}
B. function insertData(dbName, colName, num)
{
var col = db.getSiblingDB(dbName).getCollection(colName);{
for (i = 0; i < num; i++)
col.insert({x:i});}
print(col.count());
}
C. insertData(dbName, colName, num){
var col = db.getSiblingDB(dbName).getCollection(colName);for (i = 0; i < num; i++)
{
col.insert({x:i});
}
print/col.counto):
Π

Thông tin

Category
SDN301m
Thêm bởi
Lust99
Ngày thêm
Lượt xem
1,083
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
SDN301m_-_SU_2024_-_FE_2261.webp
File size
251 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom