Add Auto Increment Column with Custom Start Value in MySQL

AmitDiwan
Updated on 13-Dec-2019 06:24:18

1K+ Views

To add a new column to an already created table, use ALTER TABLE and ADD COLUMN. Use AUTO_INCREMENT to set auto increment custom value.Let us first create a table −mysql> create table DemoTable    -> (    -> StudentName varchar(20)    -> ); Query OK, 0 rows affected (0.63 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('Robert'); Query OK, 1 row affected (0.12 sec) mysql> insert into DemoTable values('Adam'); Query OK, 1 row affected (0.13 sec) mysql> insert into DemoTable values('Mike'); Query OK, 1 row affected (0.12 sec)Display all records from the table using ... Read More

Outbound IDOC Not Triggered in T-Code VA01 in SAP

John SAP
Updated on 13-Dec-2019 06:21:10

611 Views

I am not sure what has gone wrong however you can open order in edit mode in T-code: VA02 and take a look at the message determination protocol. There you can check why message wasn’t processed in SAP system.

Change Text of Options for SELECT in ABAP

Anil SAP Gupta
Updated on 13-Dec-2019 06:19:29

381 Views

Yes, it can be done but I would request you to go through documentation available on SAP help before asking such questions as such things are well explained in documentation and help you to know the system better. You just need to set the text property to text of your choice.INITIALIZATION %_name_%_app_%-text = Hope it helps.

MySQL Query Error with a Table Named 'Order'

AmitDiwan
Updated on 13-Dec-2019 06:18:26

457 Views

The order is a reserved word. To still use a reserved word, you need to use backticks around the column name. Let us first create a table −mysql> create table `order`    -> (    -> StudentId int    -> ); Query OK, 0 rows affected (1.78 sec)Insert some records in the table using insert command −mysql> insert into `order` values(101); Query OK, 1 row affected (0.26 sec) mysql> insert into `order` values(210); Query OK, 1 row affected (0.18 sec) mysql> insert into `order` values(190); Query OK, 1 row affected (0.28 sec) mysql> insert into `order` values(180); Query OK, 1 ... Read More

Export CSV Using REST API in SAP Business Objects

Anil SAP Gupta
Updated on 13-Dec-2019 06:17:44

743 Views

Yes, it is feasible and I have done something similar in one of my previous projects. But you need to be little clear on what you need to export. There are two options regarding the content of export:Raw Data ( it is basically the query)Formatted Data ( it is your report)I will provide you help for both. In case, if you are looking for just exporting the raw data then you can the following call and you should be able to fetch the raw data.http://:6405/biprws/raylight/v1/documents//dataproviders//flows/Also as will require the response in CSV, set the ACCEPT to ‘text/plain’ so that the ... Read More

Show Row with Zero Value After Addition in MySQL

AmitDiwan
Updated on 13-Dec-2019 06:16:40

163 Views

For this, you can use an aggregate function SUM() along with the condition. Let us first create a table −mysql> create table DemoTable    -> (    -> Status varchar(20)    -> ); Query OK, 0 rows affected (1.22 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('active'); Query OK, 1 row affected (0.11 sec) mysql> insert into DemoTable values('active'); Query OK, 1 row affected (0.15 sec) mysql> insert into DemoTable values('active'); Query OK, 1 row affected (0.30 sec) mysql> insert into DemoTable values('active'); Query OK, 1 row affected (0.18 sec)Display all records from the ... Read More

Find Rows with a Match in a Pipe-Delimited Column with MySQL

AmitDiwan
Updated on 13-Dec-2019 06:14:20

509 Views

To find a match, use regular expressions in MySQL. Let us first create a table −mysql> create table DemoTable    -> (    -> Value varchar(60)    -> ); Query OK, 0 rows affected (0.48 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('8|56|78|45'); Query OK, 1 row affected (0.24 sec) mysql> insert into DemoTable values('9876'); Query OK, 1 row affected (0.11 sec) mysql> insert into DemoTable values('98|8'); Query OK, 1 row affected (0.17 sec) mysql> insert into DemoTable values('3|8|9'); Query OK, 1 row affected (0.13 sec) mysql> insert into DemoTable values('97|94'); Query OK, 1 ... Read More

Add String with Double Quotes to MySQL Records

AmitDiwan
Updated on 13-Dec-2019 06:11:43

536 Views

To insert records with double quotes, use a backslash (\) as in the below syntax −Syntaxinsert into yourTableName values('\"yourValue\"');Let us first create a table −mysql> create table DemoTable    -> (    -> Name varchar(20)    -> ); Query OK, 0 rows affected (0.63 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('\"John\"'); Query OK, 1 row affected (0.17 sec) mysql> insert into DemoTable values('\"Chris\"'); Query OK, 1 row affected (0.11 sec) mysql> insert into DemoTable values('\"Adam Smith\"'); Query OK, 1 row affected (0.14 sec) mysql> insert into DemoTable values('\"Carol\"'); Query OK, 1 row affected ... Read More

MySQL Search and Replace Record from a List of Records

AmitDiwan
Updated on 13-Dec-2019 06:10:10

143 Views

Let us first create a table −mysql> create table DemoTable    -> (    -> ListOfName text    -> ); Query OK, 0 rows affected (0.66 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('Carol, Sam, John, David, Bob, Mike, Robert, John, Chris, James, Jace'); Query OK, 1 row affected (0.13 sec)Display all records from the table using select statement −mysql> select *from DemoTable;This will produce the following output −+------------------------------------------------------------+ | ListOfName                                               ... Read More

Extract Date from String in MySQL

AmitDiwan
Updated on 13-Dec-2019 06:06:20

722 Views

To extract date from the string in MySQL, use SUBSTRING_INDEX(). Let us first create a table −mysql> create table DemoTable    -> (    -> Title text    -> ); Query OK, 0 rows affected (0.58 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('John has got joining date.12/31/2018'); Query OK, 1 row affected (0.13 sec) mysql> insert into DemoTable values('Carol has got joining date.01/11/2019'); Query OK, 1 row affected (0.22 sec) mysql> insert into DemoTable values('Sam will arrive at.12/03/2050'); Query OK, 1 row affected (0.87 sec)Display all records from the table using select statement ... Read More

Advertisements