sql="select count(id) as id from (SELECT top 800 id as id,gjzname AS title, webcontent AS content, weburl AS http,addtime as addtime,";
sql=sql+"price as onclick,1 as type,yhid as hyid FROM s_gjz WHERE shenhe=1 and ";
sql = sql + "(gjzname = '" + words + "' or webcontent = '" + words + "') UNION ALL ";
sql=sql+"SELECT top 800 id as id,title AS title, content AS content ,http AS http, addtime as addtime,";
sql=sql+"onclick as onclick,0 as type,0 as ";
sql=sql+"hyid FROM jxsbss where ifzdlr=2 and shenhe=1 and ";
sql = sql + "(title LIKE '%" + words + "%' or content like '%" + words + "%' or company like '%" + words + "%') order BY type desc, onclick desc, ";
sql=sql+"addtime DESC) as idd";
SqlCommand com = new SqlCommand(sql, sharee.con);
SqlDataReader dread = com.ExecuteReader();