With the rename command
Install rename using the following command if not installed
brew install rename
rename ‘s/^/logo_/’ *.png
Reproduced in: https://www.cnblogs.com/yibinpan/p/9602170.html
With the rename command
Install rename using the following command if not installed
brew install rename
rename ‘s/^/logo_/’ *.png
Reproduced in: https://www.cnblogs.com/yibinpan/p/9602170.html
r I in *.PNG
for I in *.PNG; do mv "$i" "pre_${i%.PNG}.PNG" ; Done
code> f> in *.png; do mv "$i" "${i%.PNG}_tail.PNG" ; Done The original address: http://blog.sina.com.cn/s/blog_9d25acc60102w6n1.html
Take the PNG file for example
1. Open the terminal
cd to the specified folder
3> The input
for i in *.png;do mv "$i" "${i%.png}@2x.png" ;done
You can do what you want
Get all default values:
Select * from syscolumns c inner join systypes t on c.xusertype=t.xusertype left syscolumns c inner join syscolumns t on c.xusertype=t.xusertype left Join sysproperties p on c.id=p.id and c.colid = p.mallid left join syscomments m on c.default =m.id
Get the default value of a single field:
Select * from syscolumns c inner join systypes t on c.xusertype=t.xusertype left syscolumns c inner join syscolumns t on c.xusertype=t.xusertype left Join sysproperties p on c.id=p.id and c.colid = p.mallid left join syscomments m on c.default =m.id where objectProperty (c.id,’IsUserTable’)=1 and object_name(c.id) = ‘T_good’ and objectProperty (c.id) = ‘T_good’ and C.name = ‘field name’
start
`creation_time` NUMERIC DEFAULT (datetime('now','localtime')),
`update_time` NUMERIC DEFAULT (datetime('now','localtime'))
The above
Reproduced in: https://www.cnblogs.com/vanwoos/p/9681149.html
CREATE TABLE `table1` ( `id` int(11) NOT NULL, `createtime` timestamp NULL default CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
If you are operating under Navicat, set the field type to TIMESTAMP, and write CURRENT_TIMESTAMP as the default value, as shown below:

Add a new column to an existing table
ALTER TABLE table1 ADD COLUMN `createtime` timestamp NULL DEFAULT CURRENT_TIMESTAMP
3. Modify the time format of a column and add the default value
alter table table1 change createtime newtime timestamp null default current_timestamp
to_char((CURRENT_DATE)::timestamp with time zone, 'yyyy'::text)
to_char((CURRENT_DATE)::timestamp with time zone, 'yyyy-MM-dd'::text)
to_char((CURRENT_DATE)::timestamp with time zone, 'yyyy-MM-dd hh24:MI:ss'::text)
to_char((CURRENT_DATE)::timestamp with time zone, 'yyyy-MM-dd hh:MM:ss'::text)
The image below shows the effect




| modifiers th> | Java th> | Kotlin th> tr> |
|---|---|---|
| public td> | all kind of visible td> | all kind of visible (the default) td> tr> |
| private td> | current class visible td> | current class visible td> tr> |
| prote Cted td> | the current class, subclass, class is visible under the same package path td> | the current class, subclass visible td> tr> |
| default td> | class visible (the default) under the same package path td> | no td> tr> |
| internal td> | no td> | class is visible in the same module td> tr> tbody> table>
Su – MySQL switch user, display error: resource temporarily unavailableThe problem
To solve
|