首页 \ 问答 \ 为什么tar命令标记为“遗留”?(Why is the tar command marked as 'legacy'?)

为什么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
更新时间:2021-10-03 22:10

最满意答案

可能有以下几个原因:

  1. 我没有看到从您的类变量到表字段regional_country任何映射。 请确保使用注释@Column指定变量映射到的正确表字段。 例如,如果变量countryCode映射到表字段country_code,则应该这样注释: @Column(name = "country_code") private int countryCode;
  2. 对于变量private String countryName; private String countryCode; private String countryName; private String countryCode; 如果它们在数据库模式中有映射字段,请使用@Column注释它们
  3. 如果您提供有关您的问题的更多信息,将会很有帮助:例如,您的数据库架构。

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 datatables

DROP 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
);

相关问答

更多
  • 让我们在那里放一些测试和调试输出...... 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.
  • 这是因为你的 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 ...
  • 在查询结束时你有一个冗余的。 我猜这将是一个复制粘贴错误:-) 但是我会尝试这个查询 '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

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)