sql语句高难问题求助 - MS-SQL Server / 基础类
表是下面的格式
产品名称 描述编号 语言 产品描述
apple 1 E This is an apple.
apple 3 D Dies ist ein Apfel.
apple 1 F Il s'agit d'une pomme.
apple 2 E Apple is good for dinner.
apple 2 D Apple ist gut für das Abendessen.
........................
每一种产品用5种语言来进行产品描述,其中每种语言的产品描述又被分成了若干段,每段按照 编号 进行排序保存
现在我在c#里面想用比较简洁的方式得到每种产品的每种语言的描述,请问应该如何实现?谢谢。
想要什么结果
没怎么理解清楚,顶起
SQL code:
----------------------------------------------------------------------------------
-- Author : htl258(Tony)
-- Date : 2010-05-11 15:42:38
-- Version: Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (Intel X86)
-- Jul 9 2008 14:43:34
-- Copyright (c) 1988-2008 Microsoft Corporation
-- Developer Edition on Windows NT 5.1 <X86> (Build 2600: Service Pack 3)
-- Blog : http://blog.csdn.net/htl258
----------------------------------------------------------------------------------
--> 生成测试数据表: [tb]
IF OBJECT_ID('[t
相关问答:
执行的顺序:
1)文件浏览框(选择文件使用)
选择好文件后
点击一个导入按钮的时候 ,把上面上传框里的csv文件以一个ID为文件名,上传到**/**文件夹下
2)读取这个文件夹下的csv的文件,转换成sql
3 ......
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
我觉得mysql和sqlserver有共同的地方:
有个问题是关于表的锁问题:
进程A 进程B
select * from user where id in lock share mode(共享锁)
&nb ......
有TABLEA 字段为 采购单号、行号、物料编码、入库日期
现想按照物料编码查询最大入库日期
语句如下:
SELECT 采购单号、行号、物料编码、入库日期 from TABLEA A WHERE 入库日期=(SELECT MAX(入库日期 ......