CTOCIO IT专家网

天极传媒 比特网 | 天极网 | IT专家网 | IT商网 | 52PK游戏网 | 手机天极 | IT分众 |
IT专家网搜索

数据库 | Oracle | DB2 | SQL Server | MySQL | 商业智能 | BI | DBA | Sybase| SQL Server 2008

您现在的位置: IT专家网 > 数据库子站 > 数据库技巧

面试时最经常被问到的问题(数据库篇)

作者: mxclxp,  出处:csdn.net, 责任编辑: jinpu, 
2006-10-12 17:07
  What action do you have to perform before retrieving data from the next result set of a stored procedure?

  Databases Questions & Answers

  1.What are two methods of retrieving SQL?

  Answer:

  暂缺

  2.What cursor type do you use to retrieve multiple recordsets?

  Answer:

  暂缺

  3.What action do you have to perform before retrieving data from the next result set of a stored procedure?

  Answer:

  Move the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row. Before you can get to the first row, you would need to Move the cursor down by one row ( For ex: in java the first call to next makes the first row the current row; the second call makes the second row the current row, and so on).

  4.What is the basic form of a SQL statement to read data out of a table?

  Answer: SELECT * FROM table_name;

  5.What structure can you have the database make to speed up table reads?

  Answer:

  The question is not correct. "What structure can you have the database make to speed up table reads?" It is not clear what exactly the term "structure" means in this case. Follow the rules of DB tuning we have to:

  1) properly use indexes ( different types of indexes)

  2) properly locate different DB objects across different tablespaces, files and so on.

  3) Create a special space (tablespace) to locate some of the data with special datatypes( for example CLOB, LOB and ...)

  4)...

  5)...

  6.What is a "join"?

  Answer:

  Joins merge the data of two related tables into a single result set, presenting a denormalized view of the data.

共3页。 1 2 3 :

网友评论

笔名 
请您注意:遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。    IT专家网友拥有管理笔名和留言的一切权利。
  • 周排行榜
  • 月排行榜

邮件订阅


    

该文章的读者还阅读了

天极服务 | 关于我们 | 网站律师 | 加入我们 | 联系我们 | 广告业务 | 友情链接 | 我要挑错
All Rights Reserved, Copyright 2004-2008, Ctocio.com.cn
渝ICP证B2-20030003号 如有意见请与我们联系 powered by 天极内容管理平台CMS4i