不规则长度和固定长度之间的区别 [英] Difference between Ragged Right and Fixed Length

查看:42
本文介绍了不规则长度和固定长度之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释一下平面文件连接管理器中 Ragged Right 和 Fixed Length 之间的区别,举个例子

Can any one explain me what is the difference between Ragged Right and Fixed Length in flat file connection manager,with an Example

何时使用 Ragged Right 和 Fixed Length

When to use Ragged Right and Fixed Length

提前致谢

推荐答案

我认为 文档很好地涵盖了这一点.

I think the documentation covers this pretty well.

固定长度记录的所有字段都具有固定长度值.例如,以下有三个字段,每个字段为 10 个字符,从位置 1、10 和 20 开始:

Fixed length records have fixed length values for all fields. For instance, the following has three fields that are each 10 characters, starting at positions 1, 10, and 20:

Name     $200.10   Comment    <\n>
Name2    $200.10   Comment2   <\n>
---------1---------2---------3

<\n> 代表行尾.

参差不齐的格式允许最后一行是可变长度的:

A ragged format allows the last line to be variable length:

Name     $200.10   Comment<\n>
Name2    $200.10   Comment2<\n>
---------1---------2---------3

这是一种在其他固定长度数据中具有可变长度字段的方法.这通常用于评论,是一种节省空间的方式.

It is a way of having a variable length field in otherwise fixed length data. This would typically be used for comments and is a way to save space.

这篇关于不规则长度和固定长度之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆