为什么tar命令标记为“遗留”?(Why is the tar command marked as 'legacy'?)
我不知道这实际上是否属于这里,也许这个问题更适合超级用户。 好吧,上周我写了一个小的shell脚本,在那里我使用了tar命令。 当我在opengroup页面上读到有关tar的人时 ,我看到它被标记为遗留,并且建议不再使用它。 有谁知道为什么? 我应该使用什么命令呢?
I don't know if this actually belongs here, maybe this question is more suitable to superuser. Well, last week I've wrote a small shell-script, where I used the tar command. As I read the man on the opengroup page about tar, I saw that it was marked as legacy, and that it is recommended to not use it any more. Does anyone knows why? And what command should I use instead?
原文:https://stackoverflow.com/questions/3253486
最满意答案
可能有以下几个原因:
- 我没有看到从您的类变量到表字段
regional_country
任何映射。 请确保使用注释@Column
指定变量映射到的正确表字段。 例如,如果变量countryCode映射到表字段country_code,则应该这样注释:@Column(name = "country_code") private int countryCode;
- 对于变量
private String countryName; private String countryCode;
private String countryName; private String countryCode;
如果它们在数据库模式中有映射字段,请使用@Column
注释它们- 如果您提供有关您的问题的更多信息,将会很有帮助:例如,您的数据库架构。
Thanks for all answers but the problem was in
REGIONAL_COUNTRY_REGIONAL_AREA1
table column names. Postfix _UUID at the end of the column name confuses MySQL. It's possible to fix this problem renaming columns of intermediate datatablesDROP TABLE IF EXISTS REGIONAL_AREA1_REGIONAL_AREA2; DROP TABLE IF EXISTS REGIONAL_AREA1_REGIONAL_AREA2; CREATE TABLE REGIONAL_AREA1_REGIONAL_AREA2( REGIONAL_AREA1 VARCHAR(36) NOT NULL, REGIONAL_AREA2 VARCHAR(36) NOT NULL ); CREATE TABLE REGIONAL_COUNTRY_REGIONAL_AREA1( REGIONAL_COUNTRY VARCHAR(36) NOT NULL, REGIONAL_AREA1 VARCHAR(36) NOT NULL );
相关问答
更多-
'字段列表'中的未知列''(Unknown column '' in 'field list')[2022-04-18]
让我们在那里放一些测试和调试输出...... switch($lid){ case '460': $tbl = $corporation_state_fee_tbl; break; case '535': $tbl = $llc_state_fee_tbl; break; default: return 0; break; } if ( !isset($processing, $tbl, $state) ) { die("something' ... -
可能有以下几个原因: 我没有看到从您的类变量到表字段regional_country任何映射。 请确保使用注释@Column指定变量映射到的正确表字段。 例如,如果变量countryCode映射到表字段country_code,则应该这样注释: @Column(name = "country_code") private int countryCode; 对于变量private String countryName; private String countryCode; private String co ...
-
您需要对字符串值使用常规引号。 反引号用于包含列和表名。 You need to use regular quotes ' for string values. Backquotes are used to enclose column and table names.
-
字段列表中的未知列(Unknown column in field list)[2022-04-06]
这是因为你的 VALUES (%s,%s) 不是用引号围绕名称和家庭变量内容。 因此,您的后端Sql引擎认为您的mohsen是列名,而不是值。 相反,使用,例如 VALUES (''%s'',''%s'') 如在 Namee := 'mohsen'; Family := 'dolatshah'; aSQLText:= 'INSERT INTO b_tbl(Name,Family) VALUES (''%s'',''%s'')'; aSQLCommand := Format(aSQLTex ... -
“字段列表”中的未知列(Unknown column in 'field list')[2022-10-02]
在查询结束时你有一个冗余的。 我猜这将是一个复制粘贴错误:-) 但是我会尝试这个查询 'INSERT INTO filelist (username, filename, fileloc, filephoto, loanId) VALUES ("'.$client.'", "'.$filename.'", "'.$filepdf.'", "'.$file.'", "'.$loanId.'" )'; 在查询中,我之前遇到过“和”问题。 Changing the engine to MyISAM fixed ... -
如果你在mysql中创建,那么你可能忘记设置你的分隔符 drop procedure if exists aicontract; delimiter // CREATE PROCEDURE aiContract ( IN pStudent VARCHAR(63), IN pStartDate BIGINT, IN pEndDate BIGINT, IN pAdvisor VARCHAR(255), IN pResearchGroup INTEGER, IN pProject V ...
-
对于转义字符串,您需要使用单引号。 列或表名称需要反引号。 对于数字来说,没有逃避的特性。 因为你的route_id值是通过反引号mysql将其解释为列名来逃避的。 删除它们并且您的查询将起作用。 stt.execute("INSERT INTO stops(route_id, name, lat, longi) VALUES" + "(1, 'Alex allee', 83.868937, 18.665545 )," ...
-
您在此查询中至少有两个问题。 首先,当您使用反向标记来分隔标识符时,必须将表别名与列名称分开。 `verk.id` -- WRONG `verk`.`id` -- CORRECT 原因是SQL实际上允许您定义包含标点符号,空格等的列名称,如果您分隔列名称。 这就是你似乎正在做的事情,请求一个名为verk.id的列 verk.id -- ALSO CORRECT 正如其他人所评论的那样,您通常不需要使用分隔标识符。 如果您的标识符与MySQL保留字冲突,或者您需要使用标点符号,空格或国际字符 ...
-
仅在列名称周围使用“`”。 当你在你的值中传递`asd`时,它认为它应该从名为'asd'的列中获取值。 如果要使用单引号传递变量值。 use '`' only around column names. When you pass `asd` in your values it thinks that it should grab values from column called 'asd'. If you want to pass a value surround your variables with ...
-
您为表items使用别名A 在你的选择中使用A.id而不是items.Id ,你应该没事 You use the alias A for your table items. use A.id in your select instead of items.Id and you should be fine