Home
Search results “Oracle trunc timestamp”
oracle date and time functions
 
21:33
Video from our Oracle SQL course. Check out the full course at.. http://learn.hackpress.co/courses/oracle-sql-learning-by-example
Views: 44216 etldeveloper
Oracle - SQL - Date Functions
 
07:56
Oracle - SQL - Date Functions Watch more Videos at https://www.tutorialspoint.com/videotutorials/index.htm Lecture By: Mr. Anadi Sharma, Tutorials Point India Private Limited.
Oracle || Date functions Part-1 by dinesh
 
17:06
DURGASOFT is INDIA's No.1 Software Training Center offers online training on various technologies like JAVA, .NET , ANDROID,HADOOP,TESTING TOOLS ,ADF,INFORMATICA,TABLEAU,IPHONE,OBIEE,ANJULAR JS, SAP... courses from Hyderabad & Bangalore -India with Real Time Experts. Mail us your requirements to [email protected] so that our Supporting Team will arrange Demo Sessions. Ph:Call +91-8885252627,+91-7207212428,+91-7207212427,+91-8096969696. http://durgasoft.com http://durgasoftonlinetraining.com https://www.facebook.com/durgasoftware http://durgajobs.com https://www.facebook.com/durgajobsinfo......
Oracle SQL TUTORIAL – Date columns with Time in Where condition
 
12:41
In this video, we will see how to retrieve records for a specific time duration. SQLs used in this video are given below. select * from employees; alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'; SELECT DBMS_RANDOM.VALUE(0,9) FROM DUAL; SELECT SYSDATE-DBMS_RANDOM.VALUE(0,9) FROM DUAL; SELECT FIRST_NAME,LAST_NAME, SYSDATE-DBMS_RANDOM.VALUE(0,9) CREATED_DATE FROM EMPLOYEES; CREATE TABLE EMP_TEST AS SELECT FIRST_NAME,LAST_NAME, SYSDATE-DBMS_RANDOM.VALUE(0,9) CREATED_DATE FROM EMPLOYEES; SELECT * FROM EMP_TEST ORDER BY CREATED_DATE DESC; select sysdate from dual; select sysdate,trunc(sysdate) from dual; 26 sep 2018 00:00:00 to 26 sep 2018 23:59:59 select sysdate,trunc(sysdate),trunc(sysdate)+0.99999 from dual; Records that got created yesterday.. 25 sep 2018 00:00:00 to 25 sep 2018 23:59:59 select trunc(sysdate-1),trunc(sysdate-1)+0.99999 from dual; SELECT * FROM emp_test WHERE created_date BETWEEN trunc(SYSDATE-1) AND trunc(SYSDATE-1)+0.99999 order by created_date; Retrieve records for 22nd Septembter 2018 SELECT * FROM emp_test WHERE created_date BETWEEN to_date('22-sep-2018 00:00:00','dd-mon-yyyy hh24:mi:ss') AND to_date('22-sep-2018 23:59:59','dd-mon-yyyy hh24:mi:ss') order by created_date; SELECT * FROM emp_test WHERE created_date BETWEEN to_date('22-sep-2018','dd-mon-yyyy') AND to_date('22-sep-2018 23:59:59','dd-mon-yyyy hh24:mi:ss') order by created_date; -- Get all records created in last 24 hours select sysdate,sysdate-1 from dual; SELECT * FROM emp_test where created_date between sysdate-1 and sysdate order by created_date;
Views: 51 Ganesh Anbarasu
Learn Oracle | How to use the Character Functions, Date Functions in SQL
 
14:53
Pebbles present, Learn Oracle 10g with Step By Step Video Tutorials. Learn Oracle 10g Tutorial series contains the following videos : Learn Oracle - History of Oracle Learn Oracle - What is Oracle - Why do we need Oracle Learn Oracle - What is a Database Learn Oracle - What is Grid Computing Learn Oracle - What is Normalization Learn Oracle - What is ORDBMS Learn Oracle - What is RDBMS Learn Oracle - Alias Names, Concatenation, Distinct Keyword Learn Oracle - Controlling and Managing User Access (Data Control Language) Learn Oracle - Introduction to SQL Learn Oracle - Oracle 10g New Data Types Learn Oracle - How to Alter a Table using SQL Learn Oracle - How to Create a Package in PL SQL Learn Oracle - How to Create a Report in SQL Plus Learn Oracle - How to Create a Table using SQL - Not Null, Unique Key, Primary Key Learn Oracle - How to Create a Table using SQL Learn Oracle - How to Create a Trigger in PL SQL Learn Oracle - How to Delete Data from a Table using SQL Learn Oracle - How to Drop and Truncate a Table using SQL Learn Oracle - How to Insert Data in a Table using SQL Learn Oracle - How to open ISQL Plus for the first time Learn Oracle - How to Open SQL Plus for the First Time Learn Oracle - How to Update a Table using SQL Learn Oracle - How to use Aggregate Functions in SQL Learn Oracle - How to use Functions in PL SQL Learn Oracle - How to use Group By, Having Clause in SQL Learn Oracle - How to Use Joins, Cross Join, Cartesian Product in SQL Learn Oracle - How to use Outer Joins (Left, Right, Full) in SQL Learn Oracle - How to use the Character Functions, Date Functions in SQL Learn Oracle - How to use the Merge Statement in SQL Learn Oracle - How to use the ORDER BY Clause with the Select Statement Learn Oracle - How to use the SELECT Statement Learn Oracle - How to use the Transactional Control Statements in SQL Learn Oracle - How to use PL SQL Learn Oracle - Data Types in PL SQL Learn Oracle - Exception Handling in PL SQL Learn Oracle - PL SQL Conditional Logics Learn Oracle - PL SQL Cursor Types - Explicit Cursor, Implicit Cursor Learn Oracle - PL SQL Loops Learn Oracle - Procedure Creation in PL SQL Learn Oracle - Select Statement with WHERE Cause Learn Oracle - SQL Operators and their Precedence Learn Oracle - Using Case Function, Decode Function in SQL Learn Oracle - Using Logical Operators in the WHERE Clause of the Select Statement Learn Oracle - Using Rollup Function, Cube Function Learn Oracle - Using Set Operators in SQL Learn Oracle - What are the Different SQL Data Types Learn Oracle - What are the different types of Databases Visit Pebbles Official Website - http://www.pebbles.in Subscribe to our Channel – https://www.youtube.com/channel/UCNNjWVsQqaMYccY044vtHJw?sub_confirmation=1 Engage with us on Facebook at https://www.facebook.com/PebblesChennai Please Like, Share, Comment & Subscribe
Views: 2204 Pebbles Tutorials
SQL Tutorial - 47: Date & Time Functions (Part-3)
 
06:52
In this tutorial we'll check four important date & time functions that allow us to create Unix Time stamps, obtain time differences, convert time values to seconds and view month names of date values.
Views: 17883 The Bad Tutorials
Date functions in PostgreSQL , Time functions in PostgreSQL
 
10:43
Video talks about Date functions in PostgreSQL Time functions in PostgreSQL Also part of functions in PostgreSQL PostgreSQL date functions PostgreSQL tutorial videos PostgreSQL training videos
Views: 2197 Training2SQL MSBI
Oracle ADD_MONTHS Function
 
03:15
https://www.databasestar.com/oracle-add_months/ The Oracle ADD_MONTHS allows you to add a specified number of months to a date value, and return the new date value. It’s great for performing calculations on dates, or date arithmetic, which can be hard in many different programming languages. The syntax of the ADD_MONTHS function is: ADD_MONTHS ( input_date, number_months ) The function returns a DATE value. The parameters of this function are: - input_date (mandatory): This is the starting date, or the date that you will add a number of months to. - number_months (mandatory): This is an integer value that represents the number of months to add to input_date. The input_date can be any datetime value, or even a character value that can be converted to a date. Also, the number_months can be any number value, or a character value that can be converted to a number. What if the number of days in the two months are different? For example, adding a month to Jan 31 could result in Feb 31, which does not exist. Well, in this case, Oracle would work out that the date does not exist, and use the last date of the month (e.g. Feb 28). You can also provide a negative value for ADD_MONTHS to subtract months from the specified date. For more information about the Oracle ADD_MONTHS function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-add_months/
Views: 418 Database Star
Oracle DBTIMEZONE Function
 
01:17
https://www.databasestar.com/oracle-timezone-functions/ The Oracle DBTIMEZONE function returns the database timezone offset of the database. It returns it in the format of +/- TZH:TZM, or the time zone region name. It’s useful to know what timezone the database is in when working with dates and different time zones, as it can impact the queries you write. The syntax for this function is quite simple: DBTIMEZONE There are no parameters - just the function name. You can’t actually change the timezone of the database using this function. It uses the timezone of the operating system of the server the database runs on. It’s similar to the SESSIONTIMEZONE function, but that function returns the timezone of your session and not the database server. It’s also similar to the SYSTIMESTAMP function, but that function returns the date, time, and timezone of the database, where DBTIMEZONE just returns the timezone. For more information about the Oracle DBTIMEZONE function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-timezone-functions/
Views: 103 Database Star
Date Time Handiling Using To_Date and To_Char (Oracle)
 
17:48
Date Time Handling Using To_Date and To_Char (Oracle) Discussion on an Interview question Useful Links: http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions183.htm https://www.techonthenet.com/oracle/functions/to_date.php
Views: 2878 CodeSmith 001
trunc(sysdate-1)
 
03:49
Views: 148 matthew naquin
Use of TRUNC Function for separating Date and Time in Excel sheet
 
01:59
excel function TRUNC various usages........
Views: 113 Er.Sathavara Dinesh
SQL 35, displaying dates in different formats
 
04:10
display datses in different formats using select statement
Views: 1996 hammadshams
Oracle SQL Video Tutorial 18 - Working with DATE functions
 
07:31
Oracle SQL Video Tutorials 18 - Working with DATE functions explained
Views: 4891 Just Channel
38. Date Functions - Add_Months, Last_Day, Months_Between, Next_Day, To_Date, New_Time in Oracle
 
07:53
In this video you will learn about Date Functions { Add_Months(), Last_Day(), Months_Between(), Next_Day(), To_Date(), New_Time() } in Oracle. Unlike other programming language Oracle also uses functions to perform common operations. For Support =========== Email: [email protected] Contact Form: http://www.learninhindi.com/home/contact Our Social Media ================ Facebook: https://www.facebook.com/LearnInHindi Twitter: https://twitter.com/LearnInHindi For Training & Videos ===================== For more videos and articles visit: http://www.learninhindi.com Free Java Programming In Hindi Course ===================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAwwhMyoLISrxkXTADGp7PH Free Oracle PL/SQL Programming In Hindi Course ============================================== https://www.youtube.com/playlist?list=PLB5DA82419C2D99B6 Free C Programming In Hindi Course ================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAxKpBLMWogxSdy6BZcsAJq Trips & Tricks Channel ====================== https://www.youtube.com/channel/UCGmLfkuCo-3lHHJXRJ9HUMw Programming in Hindi Channel ============================ https://www.youtube.com/channel/UCudElIDgwNrybeAvXIy1HZQ
Views: 19253 ITORIAN
Date Functions (Introduction to Oracle SQL)
 
05:48
Learn what date functions are and see some examples of them. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 244 Database Star
Working with dates in Oracle PLSQL.
 
23:34
Dates in Oracle PL SQL is definitely the most powerful among all other databases. It gives us full flexibility to manipulate it of our choice, whether you are calculating days, months or year, printing date and time in various format. Useful date functions add_months, months_between, last_day, next_day and to_char helps us a lot in handling date time in our pl sql programming.
Views: 5436 Subhroneel Ganguly
2 13 SYSDATE vs CURRENT DATE
 
01:25
Oracle SQL SYSDATE vs CURRENT_DATE
Views: 397 Mahesh Peiris
Learn SQL: Query 4: Working with DATES
 
02:01
Dataset: http://www.ishelp.info/sites/yt/gsdb.accdb Next video: https://www.youtube.com/watch?v=adQR-EY6v2s&index=4&list=PLe9UEU4oeAuVIarKPBffh4qWv31lX391g Previous video: https://www.youtube.com/watch?v=Mztp1M5FUN4&index=2&list=PLe9UEU4oeAuVIarKPBffh4qWv31lX391g Topic: Learn Structured Query Language ( SQL ) keywords SELECT FROM WHERE topic DATES
Views: 2469 Mark Keith
Oracle SQL: Exploring Date Functions
 
07:29
http://www.informit.com/store/oracle-sql-livelessons-video-training-downloadable-9780134275741?WT.mc_id=Social_YT Oracle SQL: Exploring Date Functions is an excerpt from Oracle SQL LiveLessons Video Training -- 6+ Hours of Video -- Oracle SQL LiveLessons Video Training covers the basics of the Oracle SQL programming language. This course covers both Oracle standard SQL and the ANSI approved SQL that Oracle supports. The focus of the course is to give students working knowledge of the Oracle SQL language and at the conclusion of this course, students should be able to query the Oracle database. Description In this LiveLessons video course, Oracle ACE Director Dan Hotka will teach you how to use the SQL query language, interpret business questions into SQL code, and how to use Where clauses sub-queries, complex table join conditions, and how to create table objects and populate tables with data. Students will also learn how to access Oracle from Microsoft products such as Excel. In addition, they will learn how analytical SQL can be used for business analysis. This course will use both Toad and SQL Developer for SQL examples. About the Instructor Dan Hotka is a training specialist and an Oracle ACE director who has more than 37 years in the computer industry and more than 31 years of experience with Oracle products. His experience with the Oracle RDBMS dates back to the Oracle V4.0 days. Dan enjoys sharing his knowledge of the Oracle RDBMS. Dan is well published with 12 Oracle books and well over 200 published articles. He is also the video author for Oracle SQL Performance Tuning for Developers LiveLessons and Oracle PL/SQL Programming Fundamentals. He is frequently published in Oracle trade journals, regularly blogs, and speaks at Oracle conferences and user groups around the world. Visit his website at www.DanHotka.com. Skill Level Beginner Learn How To Use the SQL query language Interpret business questions into SQL code Understand Oracle standard SQL and ANSI SQL Work with Where clauses, sub-queries, and complex table join conditions Create table objects and populate these tables with data Access Oracle from Microsoft products such as Excel Use analytical SQL, useful for business analysts Who Should Take This Course Students who are new to SQL and want to learn Oracle SQL Course Requirements Basic knowledge of what is a database, especially RDBMS and what is a computer programming language http://www.informit.com/store/oracle-sql-livelessons-video-training-downloadable-9780134275741?WT.mc_id=Social_YT
Views: 4885 LiveLessons
85. ROUND Function in SQL (Hindi)
 
03:22
Please Subscribe Channel Like, Share and Comment Visit : www.geekyshows.com
Views: 7171 Geeky Shows
114- Oracle SQL 12c: Managing Data in Different Time Zones 2
 
10:12
•Time Zones. •Timestamp Data type •timestamp with time zone •timestamp with local time zone •V$TIMEZONE_NAMES •DBTIMEZONE •SESSIONTIMEZONE •current_date •current_timestamp •Localtimestamp •alter session set time_zone •Extract expression •TZ_OFFSET •from_tz •to_timestamp •to_yminterval •to_dsinterval
Views: 1944 khaled alkhudari
SQL Tutorial - 46: Date & Time Functions (Part-2)
 
05:36
In this tutorial we'll understand how we can view the day name for a particular date, view the current date and time through a single function and also to make dates with year and day values through the DAYNAME(), NOW() and MAKEDATE() functions respectively. Thanks for watching!
Views: 20282 The Bad Tutorials
Common issues with SQL dates in 9 minutes and a half
 
09:42
CAPTIONS AVAILABLE. Full transcript (with some screenshots) available for a small fee at http://stores.lulu.com/konagora/. Conditions on dates are a frequent source of performance issues. Using dates well isn't difficult. Here is how.
Views: 3367 roughsealtd
Oracle SQL Video Tutorials  - TO_DATE functions
 
02:51
Oracle SQL Video Tutorials 21 - TO_DATE functions explained
Views: 4100 Just Channel
Calculate with SQL
 
01:27
Get time difference with SQL
Views: 138 Jan Ingemansen
31. SQL  Functions - Date
 
06:02
In this video we will learn about different date time functions in sql. Video from our Oracle SQL course. String Functions : https://youtu.be/NFjNIxvTBzc
Views: 101 ProSchool
Tutorial#32 How to use INITCAP function in Oracle SQL | Make First Letter of String as Capital
 
04:26
Convert the first letter in the capital using INITCAP function in Oracle SQL or how to use the inticap function in SQL or SQL server capitalize the first letter of every word In this series we cover the following topics: SQL basics, create table oracle, SQL functions, SQL queries, SQL server, SQL developer installation, Oracle database installation, SQL Statement, OCA, Data Types, Types of data types, SQL Logical Operator, SQL Function,Join- Inner Join, Outer join, right outer join, left outer join, full outer join, self-join, cross join, View, SubQuery, Set Operator. Link for Assignment: https://drive.google.com/open?id=1N2CqFdll6kCl3u1F1VFW5P5byM3MOiLM follow me on: Facebook Page: https://www.facebook.com/LrnWthr-319371861902642/?ref=bookmarks Contacts Email: [email protected] Instagram: https://www.instagram.com/equalconnect/ Twitter: https://twitter.com/LrnWthR
Views: 112 EqualConnect Coach
SYSDATE Function: SQL Tutorial 35
 
00:26
Please watch: "Install Oracle Database 12c Release 2 on Windows 10 Professional 64 bit" https://www.youtube.com/watch?v=5705VFJmku0 -~-~~-~~~-~~-~-
Views: 342 Solution Wizard
TO CHAR and TO DATE Function with RR Date Format: SQL Tutorial 46
 
00:28
Please watch: "Install Oracle Database 12c Release 2 on Windows 10 Professional 64 bit" https://www.youtube.com/watch?v=5705VFJmku0 -~-~~-~~~-~~-~-
Views: 176 Solution Wizard
MSSQL -  Query to group by time intervals  = group by 15 minutes time intervals
 
05:52
this simple example will group data by time intervals - in my case 15 minutes More info with ready to copy and paste query - http://howtodomssqlcsharpexcelaccess.blogspot.ca/2016/08/mssql-query-that-loads-data-by-15.html
Views: 2804 Vis Dotnet
MySQL Tutorial : RTRIM command
 
01:48
MySQL rtrim function is used to remove white space from the ending of the string for more information log on to http://www.codesnipr.com/snippet/895/SQL-RTRIM-command
Views: 237 MrAmitweb
Урок 33. SQL. Работа с датами.
 
10:41
В языке SQL Oracle диалекта существует множество функций для работы c типом date Напоминаю тип date содержит дату и время, например, время заполнения накладной , дату время создания записи в таблице Функция SYSDATE- текущая дата время если мы SYSDATE-1 предыдущий день, то же самое время SYSDATE-1/24*3 текущее время - 3 часа назад то есть единица обозначет сутки , а 1/24 один час учебная среда https://apex.oracle.com/pls/apex/ схема: SQLADV польз: student1 пароль: student1 будут работать (student2/ student2, student3/ student3 .... student11/ student11) меню SQL Workshop , SQL Command или используйте http://sqlfiddle.com/ скрипт бд для загрузки в sqlfiddle http://sqladv.ru/dev/sql.txt урок и задания http://sqladv.ru/dev/sqlbasic/l33.txt
ORACLE ADVANCED - COUNT AND GROUP BY - INTERNATIONAL SIGN LANGUAGE
 
22:37
2° TUTORIAL ORACLE, WORLD DEAF TECH (WDT)
Views: 126 Gabriele Serpi
13 Oracle Database   Data Type Conversion Explicit and Implicit   To Number   To Char   To Date
 
04:45
13-Oracle Database - Data Type Conversion Explicit and Implicit - To_Number - To_Char - To_Date.avi
Views: 3004 Adel Sabour
Oracle 11g Tutorial #2: Different Datatypes of Oracle
 
02:55
Different datatypes of oracle 11g. Varchar2, char, Number , date, BLOB anf CLOB datatypes. Oracle 11g Tutorial #2: Different Datatypes of Oracle . Thanks for watching my videos regularly and motivate me to touch the another milestone. Please subscribe my channel "Learn TechToTech" My Website : www.learnfromrakesh.com My Twitter Account : https://twitter.com/LearnTechtotech My Facebook Account: https://www.facebook.com/LearnTechToTech
Views: 230 Learn TechToTech
Importing Data from Excel into Oracle Database using SQL Developer 4.1
 
02:23
One of SQL Developer’s most popular features has undergone a significant upgrade. Users can quickly define and recall delimited or Excel files to be imported to a new or existing Oracle table. Data preview and validation is provided for each column, as well as ‘best guess’ data type and date format mask mapping. This process can now be automated via the SQL Developer command line interface (SDCLI) ‘Import’ command. NOTE: This is a video only. There is no audio. Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
SQL 11g Tutorial in Bangla # 16 Date functions in SQL Statement
 
18:51
Oracle Database 11g SQL series tutorial in Bangla
Views: 65 Leen's Tech
SQL 079 Numeric Scalar, FLOOR or How can I round values downward?
 
01:02
Explains the Numeric Scalar Function FLOOR to round a value downward to the next whole integer. From http://ComputerBasedTrainingInc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 169 cbtinc
SQL 083 Numeric Scalar, POSITION or What is the starting position of a sub-string?
 
01:11
Explains the Numeric Scalar Function POSITION or return the position of a sub-string. From http://ComputerBasedTrainingInc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 214 cbtinc
SQL 11g Tutorial in Bangla # 14 Number functions in SQL Statement
 
09:27
Oracle Database 11g SQL series tutorial in Bangla
Views: 67 Leen's Tech
SQL 089 String Scalar, OVERLAY or How can I replace a substring?
 
01:13
Explains the String Scalar Function OVERLAY to replace a substring. From http://ComputerBasedTrainingInc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 386 cbtinc
Mysql Tutorial in Hindi Part 11 Function part-1
 
05:26
Mysql Tutorial in Hindi Part 11 Function part-1 In this video i have shown how to use Function. Welcome to Computergirlvids Hey I am Neha and this is my Youtube channel where you will get easy oriented way of learning programming skills.I will walk you through tones of programming language tutorials, so please do subscribe , like and share my channel to get updated with my latest videos. Subscribe to Computergirlvids:https://www.youtube.com/channel/UCVYsEFbxCCo_n08obIJFfCw Facebook Page:https://www.facebook.com/computergirlvids/ Google+ Page:https://plus.google.com/u/0/107555751921434071626 Twitter Page:https://twitter.com/computergirlvid
Views: 8270 computergirlvids
SQL
 
32:46
SQL
SQL (/ˈɛs kjuː ˈɛl/, or /ˈsiːkwəl/; Structured Query Language) is a special-purpose programming language designed for managing data held in a relational database management system (RDBMS). Originally based upon relational algebra and tuple relational calculus, SQL consists of a data definition language and a data manipulation language. The scope of SQL includes data insert, query, update and delete, schema creation and modification, and data access control. Although SQL is often described as, and to a great extent is, a declarative language (4GL), it also includes procedural elements. This video is targeted to blind users. Attribution: Article text available under CC-BY-SA Creative Commons image source in video
Views: 304 Audiopedia

Diflucan 50 mg nebenwirkungen retinoid
Aspirin enteric coated tablets 100mg sertraline
Acetyls card disp 80 mg bijsluiter nolvadex
Naprosyn 250 mg naproksen
Clavulin 250 mg generico do viagra