using Clause is used when modifying the table field type , Type of conversion for display .
1. Build table
create table t(id integer);2. insert data
insert into t select generate_series(1,10);3. hold id Change the column type to varchar
test=# alter table t alter id type varchar;
ALTER TABLE
because integer turn varchar There are implicit conversions , So it can be automatically converted .4. hold id Change column type back integer
test=# alter table t alter id type integer;
error : Field "id" Cannot be automatically converted to type integer
Tips : You may need to specify "USING id::integer".
stay oracle Under Mode varchar To integer Of cast function , So there's no mistake . The above error is in pg Generated in mode .5. Use Using Clause to cast
test=# alter table t alter id type integer using id::integer;
ALTER TABLEWhen converting types, there is implicit type conversion , It will automatically switch , without , Then you have to use using Specify the conversion rules .

![[AUTOSAR VI description document]](/img/3d/1382acbc4054ab218485a12b7b4e6b.png)


![[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)](/img/f5/3ec22f1480227f33a1c8ac457155ed.jpg)
![[applet project development -- JD mall] user defined search component of uni app (middle) -- search suggestions](/img/ea/ee1ad50a497478b9d080bb5e4bdfb5.png)



