ALTER proc GetDataByNumCategory
(
@Carcategory nvarchar(
)
as
declare @sql nvarchar(
declare @Num nvarchar(
set @Num=(select top
declare @Green nvarchar(
declare @Green
set @Green=
set @Green
declare @Red nvarchar(
set @Red=
declare @Red
set @Red
exec(
ID
case when Hits=
else
from
TaoCarActive where Carcategory=
From:http://tw.wingwit.com/Article/program/MySQL/201311/29561.html