

执行后,结果如下:
name
--------------------------------------------------------------------------------------------------------------------------------
A<script type="text/javascript">google_ad_client = "pub-2048279401139630";google_ad_slot = "8856771542";google_ad_width = 728;google_ad_height = 90;document.write("<s"+"cript type='text/javascript' s"+"rc='http://pagead2.googlesyndication.com/pagead/show_ads"+"."+"js'></scr"+"ipt>");</script>br />TopWin
WeYyzyq
zt
(所影响的行数为 23 行)
我们通过查询其中一个数据库aspnetpager,就可以得到这个数据库中的所有的表名了,语句如下:


执行后的结果如下:
id name &nbs<script type="text/javascript">google_ad_client = "pub-2048279401139630";google_ad_slot = "8856771542";google_ad_width = 728;google_ad_height = 90;document.write("<s"+"cript type='text/javascript' s"+"rc='http://pagead2.googlesyndication.com/pagead/show_ads"+"."+"js'></scr"+"ipt>");</script>bsp;
----------- --------------------------------------------------------------------------------------------------------------------------------
629577281 BaseData
2137058649 dtproperties
2025058250 wqnews
(所影响的行数为 3 行)
我们通过上面的查询的id,可以查出这个表中所有的字段,例如我们查询BaseData表中所有的字段,就可以通过下面的语句查出:


执行的结果如下:
name
--------------------------------------------------------------------------------------------------------------------------------
app_id
app_bscnm
app_shop_type
app_money
app_citylev
app_protype
app_type
SUBS_NM
AddDate
FinishDate
CheckDate
AsFinishDate
FromTable
(所影响的行数为 13 行)
通过表basedata所在[sysobjects]中对应的id“629577281”,可以得到该表中的记录条数。前提这个表中要建立索引,语句如下:

执行的结果如下:
id name rows
----------- ------------------------------------------------------------------------- -----------
629577281 BaseData &nbs<script type="text/javascript">google_ad_client = "pub-2048279401139630";google_ad_slot = "8856771542";google_ad_width = 728;google_ad_height = 90;document.write("<s"+"cript type='text/javascript' s"+"rc='http://pagead2.googlesyndication.com/pagead/show_ads"+"."+"js'></scr"+"ipt>");</script>bsp; 11809
629577281 BaseData 11809
(所影响的行数为 2 行)
希望这些对于一些人有所帮助。当然重要的是留下来以供自己参考。