how to include numeric values in sql statements? : Sql dba
Answer / Keshaw Kumar
Numeric values can be included in SQL statements by directly typing them into the query. For example, if you want to select all records where a column named 'age' is equal to 25, you can use SELECT * FROM table_name WHERE age = 25;
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between sql/pl-sql/embeded sql?
Does asenumerable execute the query?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
What is the difference between clustered and non-clustered indexes?
In packages the source code is compiled into p code ? how do we describe the p code
Hi All, I am new to both this blog and technology. I was able to see a response for one of the questions on triggers as below. I would like to know why are we using " if rtrim(to_char(sysdate,'day'))=rtrim('sunday') then" instead, can't we use " if sysdate = 'sunday' then". I can understand the use of "rtrim", but dont know y v r using to_char. I have seen this in many cases but did not get a convincible explaination. Please help me with this and do excuse if this question sounds silly. Thanks in advance...... create or replace trigger trg_sun before insert on <table name> begin if rtrim(to_char(sysdate,'day'))=rtrim('sunday') then raise_application_error(-20345,'no transaction in sunday'); end if; end trg_sun;
If i insert record in table A and these record should update in table B by using Trigger.How to achieve this.
What is multiple partition?
What are the advantages of sql? Explain
Which data type doesn't allow null data type?
What are its different types of dbms?
How can we Get the Updated Rows? ie, There is 100s of Rows i updated the Rows who have salary 5000. then i want to select the Updated Rows. How can we achieve it?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)