add

ORA-00984: column not allowed here - Oracle database

点点圈 提交于 2019-12-11 20:20:19
问题 I want to add a column on an existing table (ORACLE Database) : ALTER TABLE FOA_PARAM_PRODUIT ADD (LANCEMENT_RAPIDE_DEVIS VARCHAR2 (1 CHAR) DEFAULT N) ; I got this error : ADD (LANCEMENT_RAPIDE_DEVIS VARCHAR2 (1 CHAR) DEFAULT N) * ERROR at line 2: ORA-00984: column not allowed here Here are my actuel table : ID_PRODUIT NUMBER(5,0) ID_MARCHE NUMBER(5,0) ID_BRANCHE NUMBER(5,0) COD_PRODUIT VARCHAR2(200 CHAR) LIB_PRODUIT VARCHAR2(200 CHAR) TYP_DEBRANCHEMENT VARCHAR2(20 CHAR) COD_OAV VARCHAR2(10

Issue with saving an update information in Codeigniter

爷,独闯天下 提交于 2019-12-11 19:54:15
问题 My goal is to update job_contract. There are two ways that this SHOULD be done. 1. through the client's page AND 2. through the provider's page. What I currently have is in my job model is: public function update_job_contract($post_obj) { $id = $post_obj['id']; $data = array ( 'client_feedback' => $post_obj['client_feedback'], 'client_notetoself' => $post_obj['client_notetoself'], 'contract_status' => $post_obj['contract_status'], 'client_id' => $this->auth_model->get_user_id() ); $this->db-

Edit and delete issues in codeigniter

送分小仙女□ 提交于 2019-12-11 19:44:38
问题 I tried some of the steps here, but until now, my edit and delete functions do not work correctly. Can you please help me with it? First, I have these lines in my client controller: public function edit_job { $this->validateRole('client'); $this->load->model('job_model'); $id = $this->uri->segment(3); $data['my_preference'] = $this->array_to_select( $this->job_model->get_all_categories(), 'id','name'); $data['job'] = $this->job_model->get_job($id); $this->load->view('client/edit_job', $data);

adding 16 bits registers

匆匆过客 提交于 2019-12-11 19:18:40
问题 I have this code addInt: add cx, bx cmp cx, 0FFFFh JBE convert I'm trying to add cx and bx registers, each have the same value of FFFF , instead of getting 1FFFE , I get only FFFE , and when I try to use JBE to jump to convert loop, JBE istruction does nothing because ecx register now contain only FFFE , but not 1FFF , so how can i fix this code to make ecx contain 1FFFE and how do I compare to check if it is still 16 bits or not. I cannot use any 32 bits registers which make thing more

C++ Binary Search Tree status access violation error with adding nodes

天涯浪子 提交于 2019-12-11 18:17:57
问题 I'm working on a program that works with a binary tree. I'm getting an error with adding new nodes into the tree. I can add one node, but after adding another, I get a STATUS_ACCESS_VIOLATION error. I think the error could be with the function arguments dealing with the search function. Please help me if you can. Here is he .h file that i've written: #ifndef P4_H #define P4_H #include <iostream> #include <iomanip> #include <fstream> #include <cctype> #include <string> using namespace std;

Adding new objects to an ArrayList using a constructor

瘦欲@ 提交于 2019-12-11 17:16:03
问题 I have to make a small app as an class exercise which simulates an mobile phone which is able to add and list contacts. In the main I have to create a new mobile phone by its brand and to add new contacts in it. How can I make an ArrayList which stores the contacts and add them in the List as it follows ? public static void main(String[] args) { Phone phone = new GalaxyS6();//should compile phone.addContact("id", "phoneNumber", "firstName", "lastName"); 回答1: If you want to add the objects to

Java Calendar strange behaviour when add or subtract hours

大憨熊 提交于 2019-12-11 16:45:58
问题 When I add or subtract hours it seems the Calendar object has some unexpected behaviour (at least I think so) Can someone explain this, I first add 2 hours after that I subtract 3 hours, so my time should be 1 less then were i started at. What am I thinking wrong here?: Calendar calReference= new GregorianCalendar(2014,9,26); sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); System.out.println("test dummy "+sdf.format(calReference.getTime())); calReference.add(Calendar.HOUR_OF_DAY, 2); /

How to add row to datagridview situated on another form

有些话、适合烂在心里 提交于 2019-12-11 16:19:19
问题 i have two form applictaion. and i have datagrid with three string columns on the "MainForm". the destination of the second form is to add rows to this datagrid with some parametres such as text of the 1,2 and 3 columnns this code works private void MainForm_Load(object sender, EventArgs e) { dgvTasks.Rows.Add("s1", "s2", "s3"); } but when i drop this code to another form it doesn't work //"MainForm" public void addRowToDataGridView(string type, string title, string time) { dgvTasks.Rows.Add

add submodule (built with cmake) in qbs project

不打扰是莪最后的温柔 提交于 2019-12-11 15:39:05
问题 I'm using cmake to build my project now and I want to migrate to qbs in the future. I have some opensource sub-modules from github, which are currently built with cmake , and are included in my project using cmake 's add_subdirectory . I've tried to research but found no alternatives of add_subdirectory in qbs. I don't think migrating all sub-modules build system from cmake to qbs is a good idea because that means I have to migrate sub of sub-modules or sub of sub of sub-modules as well :)

Here is the AddList code that seems to be flawed

天涯浪子 提交于 2019-12-11 15:29:51
问题 I previously asked this question: Code that works on Windows Laptops but not on Mac for some reason. After looking at the comments, it seems I should've instead posted the code for AddList along with this question. This is the code for AddList public List addList(String words,int left, int top, int width, int height, ItemListener listener) { List newComp = new List(); while (words.length()>0) { int s = words.indexOf("|"); if (s<0) { newComp.add(words); words = ""; } else { newComp.add(words