如果CO_XT_COMPONENT_ADD缺少需要的字段
可以拷贝出来,
在ZCO_XT_COMPONENT_ADD
添加字段例如:I_TEST 和 I_TESTX
或者memory id传值
在220行左右添加代码后调用BAPI即可
if i_testx is not initial.
ls_resbd_new-TEST = I_TEST.
endif.也可以调用bapi后直接修改
(SAPLCOBC)RESB_BT[]
内的对应字段

1.创建


data:is_order_key         type coxt_ord_key,i_material           type coxt_material,is_storage_location  type coxt_s_storage_location,is_storage_locationx type coxt_s_storage_locationx,is_requ_quan         type coxt_s_quantity,i_operation          type afvc-aplzl,i_posno              type cif_r3res-positionno,ls_return            type coxt_bapireturn,lv_error             type c.data:lv_matnr  type mara-matnr,lv_aufnr  type afpo-aufnr,lv_sortf  type resb-sortf,lv_sortfx type c,lv_posnr  type char4.types: begin of ty_resb_bt.include type resbb.types: indold type syst_tabix.types: no_req_upd type syst_datar.types: end of ty_resb_bt.types tt_resb_bt type table of ty_resb_bt.field-symbols: <ft_resb_bt> type tt_resb_bt,<fs_resb_bt> type ty_resb_bt.data:begin of lt_aufnr occurs 0,aufnr type afpo-aufnr,end of lt_aufnr.refresh lt_aufnr.loop at gt_data1 assigning <fs_data1> where check eq 'X'and cellcolor is initialand icon ne icon_led_green.lt_aufnr-aufnr = <fs_data1>-aufnr.append lt_aufnr.clear  lt_aufnr.endloop.sort lt_aufnr.delete adjacent duplicates from lt_aufnr.loop at lt_aufnr.loop at gt_data1 assigning <fs_data1> where aufnr eq lt_aufnr-aufnr.clear:lv_matnr,lv_aufnr,lv_posnr,is_requ_quan,is_storage_location,is_storage_locationx,ls_return,lv_error,lv_sortf,lv_sortfx.unassign:<ft_resb_bt>,<fs_resb_bt>.lv_aufnr = <fs_data1>-aufnr.lv_matnr = <fs_data1>-matnr.call function 'CONVERSION_EXIT_ALPHA_INPUT'exportinginput  = lv_aufnrimportingoutput = lv_aufnr.call function 'CONVERSION_EXIT_ALPHA_INPUT'exportinginput  = lv_matnrimportingoutput = lv_matnr.is_order_key = lv_aufnr.i_material = lv_matnr.is_requ_quan-quantity = <fs_data1>-menge.is_storage_location-werks = <fs_data1>-werks.is_storage_locationx-werks =  'X'.if <fs_data1>-lgort is not initial.is_storage_location-lgort = <fs_data1>-lgort.is_storage_locationx-lgort =  'X'.endif.call function 'CO_XT_COMPONENT_ADD'exportingis_order_key         = is_order_keyi_material           = i_materialis_requ_quan         = is_requ_quani_operation          = i_operationis_storage_location  = is_storage_locationis_storage_locationx = is_storage_locationxi_postp              = 'L'i_posno              = i_posnoimportinges_bapireturn        = ls_returne_error_occurred     = lv_error.if lv_error is initial.assign ('(SAPLCOBC)RESB_BT[]') to <ft_resb_bt>.data(line) = lines( <ft_resb_bt> ).loop at <ft_resb_bt> assigning <fs_resb_bt>."新增行数据处理if sy-tabix = line.if <fs_data1>-posnr is not initial.<fs_resb_bt>-posnr = <fs_data1>-posnr.else.select single max( posnr )into <fs_resb_bt>-posnrfrom resbwhere aufnr eq lv_aufnr.<fs_resb_bt>-posnr = <fs_resb_bt>-posnr + 1.lv_posnr = <fs_resb_bt>-posnr.endif.call function 'CONVERSION_EXIT_ALPHA_INPUT'exportinginput  = <fs_resb_bt>-posnrimportingoutput = <fs_resb_bt>-posnr.if <fs_data1>-sortf is not initial.<fs_resb_bt>-sortf = <fs_data1>-sortf.endif.if <fs_resb_bt>-xwaok is initial.<fs_resb_bt>-xwaok = 'X'.endif.endif.endloop.call function 'CO_XT_ORDER_PREPARE_COMMIT'importinges_bapireturn    = ls_returne_error_occurred = lv_error.if ( ls_return-type = 'S' or ls_return-type = 'W' or ls_return-type = 'I' ) orls_return is initial.call function 'BAPI_TRANSACTION_COMMIT'exportingwait = 'X'.call function 'CO_XT_ORDER_INITIALIZE'.<fs_data1>-mseg = '新增成功'.
*          <fs_data1>-color = 'C500'.<fs_data1>-icon = icon_led_green.perform save_history_add using <fs_data1> lv_posnr.else.call function 'BAPI_TRANSACTION_ROLLBACK'.<fs_data1>-mseg = ls_return-message.<fs_data1>-icon = icon_led_red.endif.else.call function 'BAPI_TRANSACTION_ROLLBACK'.<fs_data1>-mseg = ls_return-message.<fs_data1>-icon = icon_led_red.endif.wait up to 1 seconds.endloop.endloop.

2.修改

 data:lt_resb like table of resb with header line.data:lv_message type string,lv_matny   type mara-matnr.data:ft_return type table of bapiret2 with header line.data:lt_return type table of bapiret2 with header line.data:ls_return  type coxt_bapireturn,ls_return2 type bapiret2,error      type c.data:order   type coxt_ord_key,compkey type coxt_s_ord_comp_key,ret     type coxt_bapireturn,bapiret type coxt_t_bapireturn.data : is_order_key               type  coxt_ord_key,is_order_component_key     type  coxt_s_ord_comp_key,is_requirement_quantity    type  coxt_s_quantity,is_requirement_quantityx   type  coxt_s_quantityx,is_confirmed_quantity      type  coxt_s_quantity,is_confirmed_quantityx     type  coxt_s_quantityx,i_material                 type  coxt_material,i_materialx                type  coxt_materialx,is_order_operation_key     type  coxt_s_ord_opr_key,is_order_operation_keyx    type  coxt_s_ord_opr_keyx,is_requirement_date        type  coxt_s_date,is_requirement_datex       type  coxt_s_datex,is_storage_location        type  coxt_s_storage_location,is_storage_locationx       type  coxt_s_storage_locationx,i_batch                    type  coxt_batch,i_batchx                   type  coxt_batchx,i_mi_configuration_object  type  coxt_config_object,i_mi_configuration_objectx type  coxt_config_objectx.data :wa_resb          type resb,es_bapireturn    type  coxt_bapireturn,e_error_occurred type  c.data:begin of lt_aufnr occurs 0,aufnr type afpo-aufnr,end of lt_aufnr.refresh:lt_aufnr,lt_return.loop at gt_data2 assigning <fs_data2> where check eq 'X'and cellcolor is initialand icon ne icon_led_green.lt_aufnr-aufnr = <fs_data2>-aufnr.append lt_aufnr.clear  lt_aufnr.endloop.sort lt_aufnr.delete adjacent duplicates from lt_aufnr.loop at lt_aufnr.clear is_order_key.is_order_key = lt_aufnr-aufnr.call function 'CONVERSION_EXIT_ALPHA_INPUT'exportinginput  = is_order_keyimportingoutput = is_order_key.loop at gt_data2 assigning <fs_data2> where aufnr eq lt_aufnr-aufnr.clear:lv_matny,ft_return[],ft_return,lv_message.lv_matny = <fs_data2>-matny.call function 'CONVERSION_EXIT_ALPHA_INPUT'exportinginput  = lv_matnyimportingoutput = lv_matny.if <fs_data2>-potx1 is initial and p_bf ne 'X'.select *into corresponding fields of table lt_resbfrom resbwhere aufnr eq is_order_keyand   matnr eq lv_matnyand   xloek ne 'X'.else.select *into corresponding fields of table lt_resbfrom resbwhere aufnr eq is_order_keyand   matnr eq lv_matnyand   xloek ne 'X'and   potx1 eq <fs_data2>-potx1.endif.if lt_resb[] is initial.<fs_data2>-mseg = '无该原物料可替换'.<fs_data2>-icon = icon_led_red.continue.endif.loop at lt_resb.clear:ls_return,ls_return2,is_order_component_key,is_requirement_quantity,is_requirement_quantityx,is_storage_location,is_storage_locationx,i_material,i_materialx,is_storage_location,is_storage_locationx,lv_message,error.move-corresponding lt_resb to is_order_component_key.if <fs_data2>-matnr is initial.i_material = <fs_data2>-matny.else.i_material = <fs_data2>-matnr.endif.call function 'CONVERSION_EXIT_ALPHA_INPUT'exportinginput  = i_materialimportingoutput = i_material.i_materialx = 'X'.is_storage_location-werks = lt_resb-werks.is_storage_locationx-werks = 'X'.if <fs_data2>-menge is not initial.is_requirement_quantity-quantity = <fs_data2>-menge.is_requirement_quantityx-quantity = 'X'.endif.if <fs_data2>-lgort is not initial.is_storage_location-lgort  = <fs_data2>-lgort.is_storage_locationx-lgort = 'X'.endif.clear lv_zcomp.if <fs_data2>-matnr is initial."新物料号为空 组件为原物料号concatenate lt_resb-posnr lt_resb-matnr into lv_zcomp separated by '/'.else."新物料号不为空 修改的是新物料号的 数量和库区concatenate lt_resb-posnr <fs_data2>-matnr into lv_zcomp separated by '/'.endif.call function 'CO_XT_COMPONENT_CHANGE'exportingis_order_key               = is_order_keyis_order_component_key     = is_order_component_keyis_requirement_quantity    = is_requirement_quantityis_requirement_quantityx   = is_requirement_quantityxis_confirmed_quantity      = is_confirmed_quantityis_confirmed_quantityx     = is_confirmed_quantityxi_material                 = i_materiali_materialx                = i_materialxis_storage_location        = is_storage_locationis_storage_locationx       = is_storage_locationxi_batch                    = i_batchi_batchx                   = i_batchxi_mi_configuration_object  = i_mi_configuration_objecti_mi_configuration_objectx = i_mi_configuration_objectximportinges_bapireturn              = ls_returne_error_occurred           = error.if error is initial.call function 'CO_XT_ORDER_PREPARE_COMMIT'importinge_order_key      = is_order_keyes_bapireturn    = rete_error_occurred = error.if ( ret-type = 'S' or ret-type = 'W' or ret-type = 'I' ) or ret is initial.data :lt_resb_get type table of resbdget,lw_resb_get like line of lt_resb_get.clear:lt_resb_get[],lw_resb_get.call function 'CO_BC_RESBD_OF_ORDER_GET'exportingaufnr_act = is_order_key
*               GET_OLD   = ' '
*               NO_MAKTX  = 'X'
*               NO_STATX  = 'X'
*               CHECK_DELETED        = ' '
*               NO_READ   = ' '
*               CHECK_VBKZ_DEL       = 'X'
*               I_ARCHIVE = ' 'tables
*               ARESB_EXP =resbd_get = lt_resb_get[].loop at lt_resb_get into lw_resb_get where rsnum = lt_resb-rsnumand rspos = lt_resb-rsposand rsart = lt_resb-rsart..if <fs_data2>-sortf is not initial.lw_resb_get-sortf = <fs_data2>-sortf.endif.modify lt_resb_get from lw_resb_get index sy-tabix.endloop.call function 'CO_BC_UPDATE_CMP_OF_ORDERS'
*   EXPORTING
*     FLG_BANF_UPD       = YX
*     FLG_CALC_CHK       = YX
*     FLG_LVS_CHK        = YX
*   IMPORTING
*     FLG_LVS            =tablesresbd_get = lt_resb_get[].call function 'BAPI_TRANSACTION_COMMIT'exportingwait = 'X'.call function 'CO_XT_ORDER_INITIALIZE'.endif.else.call function 'BAPI_TRANSACTION_ROLLBACK'.endif.wait up to 1 seconds.endloop.endloop.endloop.

3.删除

  data:lt_resb type table of resb with header line.data:lt_return type coxt_t_bapireturn with header line.data:ls_return type bapiret2.data it_resb type coxt_t_resbdel with header line .data:lv_matnr   type mara-matnr,lv_aufnr   type afko-aufnr,lv_message type string,lv_error   type c.data:ft_return type table of bapiret2 with header line.data:begin of lt_aufnr occurs 0,aufnr type afpo-aufnr,end of lt_aufnr.refresh lt_aufnr.loop at gt_data3 assigning <fs_data3> where check eq 'X'and cellcolor is initialand icon ne icon_led_green.lt_aufnr-aufnr = <fs_data3>-aufnr.append lt_aufnr.clear  lt_aufnr.endloop.sort lt_aufnr.delete adjacent duplicates from lt_aufnr.loop at lt_aufnr.clear:lt_resb[],lt_resb,lv_message,ft_return[],ft_return,ls_return,lv_error,lt_return[],lt_return,it_resb[],it_resb.loop at gt_data3 assigning <fs_data3> where aufnr eq lt_aufnr-aufnr.clear:lv_matnr,lv_aufnr.lv_matnr = <fs_data3>-matnr.lv_aufnr = <fs_data3>-aufnr.call function 'CONVERSION_EXIT_ALPHA_INPUT'exportinginput  = lv_matnrimportingoutput = lv_matnr.call function 'CONVERSION_EXIT_ALPHA_INPUT'exportinginput  = lv_aufnrimportingoutput = lv_aufnr.if <fs_data3>-potx1 is initial and p_bf ne 'X'.select rsnum rspos matnr posnr sortf aufnrinto corresponding fields of table lt_resbfrom resbwhere aufnr eq lv_aufnrand   matnr eq lv_matnrand   xloek ne 'X'.else.select rsnum rspos matnr posnr sortf aufnrinto corresponding fields of table lt_resbfrom resbwhere aufnr eq lv_aufnrand   matnr eq lv_matnrand   xloek ne 'X'and   potx1 eq <fs_data3>-potx1.endif.if lt_resb[] is initial.<fs_data3>-mseg = '无该物料可删除'.<fs_data3>-icon = icon_led_red.continue.endif.endloop.call function 'CO_XT_COMPONENTS_DELETE'exportingit_resbkeys_to_delete = it_resb[]tablesct_bapireturn         = lt_returnexceptionsdelete_failed         = 1others                = 2.if lt_return[] is initial.
*刷新变量perform change_flag_set(saplcozv).
*数据更新到DBcall function 'CO_XT_ORDER_PREPARE_COMMIT'importinges_bapireturn    = ls_returne_error_occurred = lv_error.if ( ls_return-type = 'S' or ls_return-type = 'W' or ls_return-type = 'I' )or ls_return is initial.
*DB COMMMITcall function 'BAPI_TRANSACTION_COMMIT'exportingwait = 'X'.
*刷新变量call function 'CO_XT_ORDER_INITIALIZE'.loop at gt_data3 assigning <fs_data3> where aufnr eq lt_aufnr-aufnr.<fs_data3>-mseg = '删除成功'.<fs_data3>-icon = icon_led_green.endloop.else.clear: lv_error,ls_return.call function 'BAPI_TRANSACTION_ROLLBACK'.endif.else.call function 'BAPI_TRANSACTION_ROLLBACK'.loop at gt_data3 assigning <fs_data3> where aufnr eq lt_aufnr-aufnr.<fs_data3>-mseg = lv_message.<fs_data3>-icon = icon_led_red.endloop.clear lv_message.endif.endloop.

增、改生产订单组件BAPI BAPI_ALM_ORDER_MAINTAIN

USE BAPI_ALM_ORDER_MAINTAIN TO CREATE OR CHANGE PM WORK ORDER

最近做一个sap和外部程序的接口,外部应用程序需要创建PM订单,于是我找到了BAPI_ALM_ORDER_MAINTAIN,然后做了一些测试,这是个能够创建、修改PM订单的BAPI。它需要的一些参数如下:

IT_METHODS    LIKE    BAPI_ALM_ORDER_METHOD
处理方法,必选项,存储CREATE CREATETONOTIF CHANGE DELETE RELEASE TECHNICALCOMPLETE ATPCHECK CALCULATE SCHEDULE DELELTEDSEX ADD SAVE DIALOG TRACE这些处理动作。
IT_HEADER    LIKE    BAPI_ALM_ORDER_HEADERS_I
订单的header信息
IT_HEADER_UP    LIKE    BAPI_ALM_ORDER_HEADERS_UP
修改的订单的header信息,如果是对订单header的修改,需要将对应字段置X
IT_HEADER_SRV    LIKE    BAPI_ALM_ORDER_SRVDAT_E
对象服务信息
IT_HEADER_SRV_UP    LIKE    BAPI_ALM_ORDER_SRVDAT_UP
IT_USERSTATUS    LIKE    BAPI_ALM_ORDER_USRSTAT
用户状态信息
IT_PARTNER    LIKE    BAPI_ALM_ORDER_PARTN_MUL
合作伙伴信息
IT_PARTNER_UP    LIKE    BAPI_ALM_ORDER_PARTN_MUL_UP
IT_OPERATION    LIKE    BAPI_ALM_ORDER_OPERATION
工序信息
IT_OPERATION_UP    LIKE    BAPI_ALM_ORDER_OPERATION_UP
IT_RELATION    LIKE    BAPI_ALM_ORDER_RELATION
IT_RELATION_UP    LIKE    BAPI_ALM_ORDER_RELATION_UP
IT_COMPONENT    LIKE    BAPI_ALM_ORDER_COMPONENT
组件信息
IT_COMPONENT_UP    LIKE    BAPI_ALM_ORDER_COMPONENT_UP
IT_TEXT    LIKE    BAPI_ALM_TEXT
IT_TEXT_LINES    LIKE    BAPI_ALM_TEXT_LINES
EXTENSION_IN    LIKE    BAPIPAREX
RETURN    LIKE    BAPIRET2
返回消息
ET_NUMBERS    LIKE    BAPI_ALM_NUMBERS
返回订单编码信息

1、创建一个带工序的订单
  CLEAR IT_METHODS.
  IT_METHODS-REFNUMBER = '1'.”对应下面header表中相应行的数据
  IT_METHODS-OBJECTTYPE = 'HEADER'.”需要操作的对象类型
  IT_METHODS-METHOD = 'CREATE'.”相应动作
  IT_METHODS-OBJECTKEY = '%00000000001'.”PM订单号,我们用的系统内部给号,此处使用临时编码'%00000000001',bapi结束时,会返回真正的订单号
  APPEND IT_METHODS.
  CLEAR IT_METHODS.
  IT_METHODS-REFNUMBER = '1'.”对应下面OPERATION表中相应行的数据
  IT_METHODS-OBJECTTYPE = 'OPERATION'.”需要操作的对象类型
  IT_METHODS-METHOD = 'CREATE'.”相应动作
  IT_METHODS-OBJECTKEY = '%00000000001'.”PM订单号,我们用的系统内部给号,此处使用临时编码'%00000000001',bapi结束时,会返回真正的订单号
  APPEND IT_METHODS.”多个工序时,要加入多条数据,REFNUMBER 对应OPERATION的行数
  CLEAR IT_METHODS.
  IT_METHODS-METHOD = 'SAVE'.”最后要插入一个save或dialog方法,否则bapi会报错
  APPEND IT_METHODS.”IT_METHODS已经填充完毕

"填充header数据 
  IT_HEADER-ORDERID = '%00000000001'.”临时订单号
  IT_HEADER-ORDER_TYPE = 'PM11'..”订单类型
  IT_HEADER-EQUIPMENT = ‘JB200101’.
  IT_HEADER-SHORT_TEXT= 'PM ORDER TEXT'.
  .........
  APPEND IT_HEADER

"填充工序数据表
  IT_OPERATION-ACTIVITY = ‘0010’.”operation num
  IT_OPERATION-DESCRIPTION = ‘operation text’.
  IT_OPERATION-CONTROL_KEY = 'PM01'.”control key
APPEND IT_OPERATION."多个工序加入多条,要和IT_method对应。

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
    TABLES
      IT_METHODS             = IT_METHODS
      IT_HEADER              = IT_HEADER
*   IT_HEADER_UP           =
*   IT_HEADER_SRV          =
*   IT_HEADER_SRV_UP       =
*   IT_USERSTATUS          =
*   IT_PARTNER             =
*   IT_PARTNER_UP          =
      IT_OPERATION           = IT_OPERATION
*   IT_OPERATION_UP        =
*   IT_RELATION            =
*   IT_RELATION_UP         =
*   IT_COMPONENT           =
*   IT_COMPONENT_UP        =
*   IT_TEXT                =
*   IT_TEXT_LINES          =
*   EXTENSION_IN           =
   RETURN                 = RETURN
   ET_NUMBERS             = ET_NUMBERS
            .
然后判断RETURN中的消息,做BAPI_TRANSACTION_COMMIT或者BAPI_TRANSACTION_ROLLBACK,这样就创建了一个PM订单。

2、修改一个PM订单的组件信息。
  CLEAR IT_METHODS.
  IT_METHODS-REFNUMBER = '1'.
  IT_METHODS-OBJECTTYPE = 'COMPONENT'."
  IT_METHODS-METHOD = 'CHANGE'.
  IT_METHODS-OBJECTKEY = ‘90012343’.“订单号
  APPEND IT_METHODS.”如果修改多个组件,要加入多条
  CLEAR IT_METHODS.
  IT_METHODS-METHOD = 'SAVE'.
  APPEND IT_METHODS.
    CLEAR IT_COMPONENT.
    IT_COMPONENT-RESERV_NO = ‘18933‘.“预留号
    IT_COMPONENT-RES_ITEM = ’1‘.预留项目
    IT_COMPONENT-WITHDRAWN = 'X'.“最后发货标识,要修改这个字段
    APPEND IT_COMPONENT.”如果修改多个组件,要加入多条
    IT_COMPONENTUP-WITHDRAWN = 'X'.“最后发货标识,要修改哪个字段,需要在UP表中将该字段值为X
    APPEND IT_COMPONENTUP.”如果修改多个组件,要加入多条

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
    TABLES
      IT_METHODS             = IT_METHODS
*     IT_HEADER              =
*     IT_HEADER_UP           =
*     IT_HEADER_SRV          =
*     IT_HEADER_SRV_UP       =
*     IT_USERSTATUS          =
*     IT_PARTNER             =
*     IT_PARTNER_UP          =
*     IT_OPERATION           =
*     IT_OPERATION_UP        =
*     IT_RELATION            =
*     IT_RELATION_UP         =
     IT_COMPONENT           = IT_COMPONENT
     IT_COMPONENT_UP        = IT_COMPONENTUP
*     IT_TEXT                =
*     IT_TEXT_LINES          =
*     EXTENSION_IN           =
     RETURN                 = RETURN
     ET_NUMBERS             = ET_NUMBERS
            .
然后做transaction commit或rollback操作就OK了

生产订单组件新增 修改 删除相关推荐

  1. SAP生产订单创建、工序删除/增加、组件删除/增加、生产订单下达、采购订单创建

    2021年的时候在深圳光明区某企业做了一个项目:委外生产订单创建.因为委外的生产订单和当前企业的工序以及组件并不相同,所以需要对创建的生产订单的工序进行删除和增加,对组件进行删除和增加. 当时的业务程 ...

  2. delphi百度人脸搜索(支持人脸搜索、人脸库新增修改删除查询)

    下载链接:https://download.csdn.net/download/liushenglin123/12550077 [delphi百度人脸搜索]支持人脸搜索.人脸库新增修改删除查询

  3. sharepoint 2016 学习系列篇(14)-自定义列表应用篇-(3)列表数据的新增,修改,删除操作

    前面添加完列表的字段之后,接下来介绍列表数据的新增,修改,删除操作,不需要开发,就能实现数据的新增,修改,删除等操作. 重新返回到列表的http://192.168.1.73:7003/Lists/U ...

  4. 生产订单工艺路线修改

    一.生产订单修改工艺路线 现有标准函数可以修改生产订单的工艺路线:CO_SE_PRODORD_CHANGE,但是该函数添加工艺路线时,不能传入采购信息记录和采购组织等字段,因此对标准函数进行改造 二. ...

  5. SAP中如何实现<生产订单>的批量删除方法!

    一.计划订单部份: 1.SAP 生产模块的计划订单批量删除的功能代码 MD16. 二.生产订单部份: 2.生产订单批量做删除标记.程序名:PPARCHP1 ,运行SE38,做pro.ORD 的批量删除 ...

  6. php添加导航和删除导航,新增/修改/删除ECSHOP后台左侧导航菜单

    ECSHOP后台有许多管理菜单,是否有心想将一些不用的菜单删除呢,是否想增加或者修改菜单名称呢. 通过以下方法可以实现: 例如:我们要在后台新增一个菜单分类项"APP管理",再增加 ...

  7. MYSQL 新增 修改 删除字段

    新增字段 ALTER TABLE <表名> ADD <字段名><数据类型>[约束条件] COMMENT <字段注释> AFTER <指定插入某字段 ...

  8. ORACLE 授权 新增 修改 删除 注释 重命名 表字段 表

    1.增加新字段 alter table table_name add (name varchar(20) default '',age int default 18); 2.修改表字段 2.1字段属性 ...

  9. Oracle触发器(当A表新增/修改/删除时,同步数据到B表)

    一张班级表class有以下字段 id.class_id.class_name 一张学生表student有以下字段 id.student_name.class_id 班级表与学生表的关系是一对多 一个班 ...

最新文章

  1. 中科曙光携手甘肃酒泉,积极构建新型智慧城市
  2. 14、修改字符集步骤详解
  3. 一线大厂为什么对免费的开源项目这么热衷?
  4. swoole会合并到php吗,thinkphp整合swoole
  5. 《 Docker 进阶与实战 》 读书笔记
  6. 我决定不能贱卖自己(2010年11月13日志)
  7. IDEA : IDEA 打开使用内存监控
  8. 降采样_嫦娥五号探测器圆满完成我国首次月球采样返回任务
  9. 在线最大公因数计算器
  10. Fragment控件初始化
  11. 国内最强Web3D软件WebMax正式版发布
  12. JDBC案例-用java操作数据库增删改查
  13. mac移动硬盘未装载解决方案
  14. R 语言实战-Part 3 笔记
  15. 用yolov5做人脸检测
  16. ThinkPhp6+Vue大数据分析后台管理系统
  17. java 布尔值变成字符串,Java将布尔值转换为字符串
  18. AndroidStudio4.1 不报错,不爆红
  19. Vue项目实战:接口错误拦截与环境设置
  20. app应用关键词排名都有哪些因素?

热门文章

  1. android自定义View之margin和padding的处理
  2. python文件打包
  3. Android Device Monitor 工具位置
  4. 学计算机u盘多少g合适,装系统的u盘需要多大-大白菜装win7的系统一般要多少G的U?大 – 手机爱问...
  5. Android 双usb 摄像头支持
  6. 云计算:细分之七大类商业模式
  7. php条件查询,PHP-----多条件查询(示例代码)
  8. 我在哥大读博的五年,万字总结
  9. html游戏博客论坛社区源码
  10. 笔记本电脑属于个人计算机吗,黄真真:笔记本电脑属于个人计算机的一种形式莫?...