近段时间原本是学习MVC的,谁知道把jQuery也学上了。而且觉得对jQuery更感兴趣,比如今早上有写了一个练习《
好的,开始了。
先检查数据库(以前有提供下载),是否有此存储过程,如果不存在,可以在SQL数据库查询分析器中,执行下面的存储过程:
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Insus.NET -- Create date: 2013-06-07 -- Description: get all kind of fruit by fruit category. -- ============================================= IF OBJECT_ID('[dbo].[usp_FruitKind_GetByFruitCategory]') IS NOT NULL DROP PROCEDURE [dbo].[usp_FruitKind_GetByFruitCategory] GO CREATE PROCEDURE [dbo].[usp_FruitKind_GetByFruitCategory] ( @FruitCategory_nbr TINYINT ) AS SELECT [FruitKind_nbr],[FruitCategory_nbr],[CategoryName],[KindName] FROM [dbo].[udf_FruitKind]() WHERE [FruitCategory_nbr] = @FruitCategory_nbr GO