线路选择我正在寻找如何选择倒数第二位为 4 的行,例如选择值为“235”的行4个6"
数据表回复:选择de lignes一种方法是获取最右边 2 位数字中最左边的数字,然后查看它是否为 4。 然后,选择此公式返回 1 的行。 附上样品表。

回复:选择de lignes这是一个简单的示例,它选择了倒数第二位是4

Names Default To Here( 1 );
dt = New Table( "hcarr01",
add rows( 100 ),
New Column( "example", set each value( Random Integer( -1000, 1000 ) ) )
);
// This is the selection statement to select the rows whose penultimate digit is 4
dt << select where( Substr( Char( :example ), -2, 1 ) == "4" );
回复:选择de lignes有选择是好事。 这是一个避免字符串转换的方法。
dt << select where( 40 <= Mod( Abs( :example ), 100 ) < 50 );
您可能更喜欢使用转换为字符串的其他方法之一,因为......好吧,如果 Jim 没有包含负数,我就会省略 abs(...)。
@DonMcCormack - 挑战!