【发布时间】:2015-09-11 06:33:13
【问题描述】:
我在 Sqoop 中使用了一个命令来列出我的 SQL Server 中表名中以“lkp”开头的表
$sqoop list-tables | grep -i 'lkp'
我需要的是列出带有序列号的“lkp”表,所以我尝试使用命令
$sqoop list-tables | grep -in 'lkp'
但无论名称“lkp”如何,都会导致整个表格列表的数量
7:LKP_AttributeType
11:LKP_CalendarName
22.LKP_CategoryError
27:LKP_ColumnDataType
38:LKP_ColumnName
等等……
我需要的是
1:LKP_AttributeType
2:LKP_CalendarName
3.LKP_CategoryError
4:LKP_ColumnDataType
5:LKP_ColumnName
谁能解释我如何做到这一点?
【问题讨论】: