select a.name,a.address from MovieStar a,MovieExec b where a.name=b.name and a.gender='女'
and networth>1000--2 我不太明确净资产是哪个字段,姑且猜networth是净资产
select Producerc# from Movie where titel='星球大战'--3 没明确制片人是哪个字段
select ProducerC,sum(length) SumLength from Movie group by ProducerC--4
delete from MovieExec where networht<1000--5
create view v_MovieDetail--6
as
select title,year from Movie where studioName='paramount'
那就查被 比如 那个连接地址是这样写的 a.asp?u=动作片这样就能传值过去 然后就用这个值在数据库里找 就可以了
‘-------------------------------
<td valign="top" class="flfont"><a href "list.asp?u=科幻片">科幻片</a></td>
在list页面 接收这个值
request.QueryString("u")
写到sql里 以这个只为关键字搜索
实现的功能为从服务器获取图片数据,在布局页面上显示。由于图片的个数是不确定的,因此采用在布局页面中定义多个ImageView来显示图片是不合理的。(一)首先定义布局
android:id="@+id/id_layout_movie"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
(二)加载图片显示时获取到布局文件
RelativeLayout rl_Movie = (RelativeLayout) findViewById(R.id.id_layout_movie)
(三)依次循环服务器获取的图片数据,一张一张设置图片显示的位置
//newWidth为图片显示的宽度,newHeight为图片显示的高度
RelativeLayout.LayoutParams lp1 = new RelativeLayout.LayoutParams( newWidth, newHeight)
设置lp1.leftMargin和lp1.topMargin的值
(四)最后设置rl_Movie.addView(iv, lp1)将图片加入布局文件中
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)